Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #3 from gaboom/master

Fix using global variable, fix disabled.
  • Loading branch information...
commit 5a70a66aad9245299d83857b16ff95653893093b 2 parents 7f122aa + ca585a5
James Brooks authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 jquery.timer.js
4 jquery.timer.js
@@ -15,7 +15,7 @@
15 15
16 16 if(!callback) { return false; }
17 17
18   - timer = function(interval, callback, disabled) {
  18 + var Timer = function(interval, callback, disabled) {
19 19 // Only used by internal code to call the callback
20 20 this.internalCallback = function() { callback(self); };
21 21
@@ -41,6 +41,6 @@
41 41 };
42 42
43 43 // Create a new timer object
44   - return new timer(interval, callback);
  44 + return new Timer(interval, callback, options.disabled);
45 45 };
46 46 })(jQuery);

0 comments on commit 5a70a66

Please sign in to comment.
Something went wrong with that request. Please try again.