Skip to content

Commit

Permalink
Update jquery.timer.js
Browse files Browse the repository at this point in the history
Fix using global variable, fix disabled.
  • Loading branch information
gaboom committed Mar 18, 2013
1 parent c26b3d9 commit ca585a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.timer.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


if(!callback) { return false; } if(!callback) { return false; }


timer = function(interval, callback, disabled) { var Timer = function(interval, callback, disabled) {
// Only used by internal code to call the callback // Only used by internal code to call the callback
this.internalCallback = function() { callback(self); }; this.internalCallback = function() { callback(self); };


Expand All @@ -41,6 +41,6 @@
}; };


// Create a new timer object // Create a new timer object
return new timer(interval, callback); return new Timer(interval, callback, options.disabled);
}; };
})(jQuery); })(jQuery);

0 comments on commit ca585a5

Please sign in to comment.