Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added interval id to the self object that is returned by the timeago() method #49

Open
wants to merge 1 commit into from

1 participant

@bencolon

Hello,

I just added an interval id to the self object that is returned by the timeago() method.
Convenient, if you want to manually stop the interval started.

Ben

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.timeago.js
View
2  jquery.timeago.js
@@ -107,7 +107,7 @@
var $s = $t.settings;
if ($s.refreshMillis > 0) {
- setInterval(function() { self.each(refresh); }, $s.refreshMillis);
+ self.intervalId = setInterval(function() { self.each(refresh); }, $s.refreshMillis);
}
return self;
};
Something went wrong with that request. Please try again.