Skip to content

Commit

Permalink
Merge pull request #313 from vogdb/multiple-init-fix
Browse files Browse the repository at this point in the history
Multiple init over the same instance produces multiple concurrent `setInterval`
  • Loading branch information
rmm5t authored Jan 19, 2017
2 parents 084819d + ab55e33 commit 59dbc4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.timeago.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
// functions are called with context of a single element
var functions = {
init: function() {
functions.dispose.call(this);
var refresh_el = $.proxy(refresh, this);
refresh_el();
var $s = $t.settings;
Expand Down

0 comments on commit 59dbc4d

Please sign in to comment.