Skip to content

Commit b78d3d1

Browse files
authored
Merge pull request rmm5t#289 from oliverklee/bugfix/braces
[BUGFIX] Add missing curly braces for an if
2 parents c4781ca + 5ddbbce commit b78d3d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jquery.timeago.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@
150150
update: function(timestamp) {
151151
var date = (timestamp instanceof Date) ? timestamp : $t.parse(timestamp);
152152
$(this).data('timeago', { datetime: date });
153-
if ($t.settings.localeTitle) $(this).attr("title", date.toLocaleString());
153+
if ($t.settings.localeTitle) {
154+
$(this).attr("title", date.toLocaleString());
155+
}
154156
refresh.apply(this);
155157
},
156158
updateFromDOM: function() {

0 commit comments

Comments
 (0)