File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ A callback function which will be passed to setTimeout/setInterval function.
57
57
58
58
interval: <mandatory>
59
59
60
- Interval (in seconds ) after which callback should be invoked.
60
+ Interval (in milliseconds ) after which callback should be invoked.
61
61
62
62
options: {}
63
63
@@ -71,7 +71,7 @@ If set to true JS setTimeout() function will be used instead of setInterval(). T
71
71
72
72
timeout: false
73
73
74
- If set to integer, interval timer will work only this parameter value seconds .
74
+ If set to integer, timer function will stop after specified milliseconds .
75
75
76
76
startCallback/pauseCallback/resumeCallback/stopCallback: function() {}
77
77
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ var jQuery = typeof(jQuery) === 'undefined' ? null : jQuery;
42
42
} ;
43
43
44
44
options . interval = parseInt ( options . interval , 10 ) ;
45
- options . interval = isNaN ( options . interval ) ? defaults . interval : options . interval * 1000 ;
45
+ options . interval = isNaN ( options . interval ) ? defaults . interval : options . interval ;
46
46
options . timeout = parseInt ( options . timeout , 10 ) ;
47
- options . timeout = isNaN ( options . timeout ) ? defaults . timeout : options . timeout * 1000 ;
47
+ options . timeout = isNaN ( options . timeout ) ? defaults . timeout : options . timeout ;
48
48
this . _options = $ . extend ( defaults , options ) ;
49
49
50
50
this . _timerFunction = options . useSetTimeout ? 'Timeout' : 'Interval' ;
You can’t perform that action at this time.
0 commit comments