Permalink
Browse files

Update jquery.timer.js

Fix using global variable, fix disabled.
  • Loading branch information...
1 parent c26b3d9 commit ca585a51cf103fff2cc2014396451261caa5f1b3 @gaboom gaboom committed Mar 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.timer.js
View
@@ -15,7 +15,7 @@
if(!callback) { return false; }
- timer = function(interval, callback, disabled) {
+ var Timer = function(interval, callback, disabled) {
// Only used by internal code to call the callback
this.internalCallback = function() { callback(self); };
@@ -41,6 +41,6 @@
};
// Create a new timer object
- return new timer(interval, callback);
+ return new Timer(interval, callback, options.disabled);
};
})(jQuery);

0 comments on commit ca585a5

Please sign in to comment.