Skip to content

Commit b14f02a

Browse files
author
Matt Lee
committed
+ changed minimum value for timeout to be 0 instead of 1
- removed a console log
1 parent 616336c commit b14f02a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jquery.wait.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
this._delayCompleted = false;
1313
this._$real = $real;
1414

15-
if (typeof delay === 'number' && delay > 0 && delay < Infinity) {
15+
if (typeof delay === 'number' && delay > -1 && delay < Infinity) {
1616
// if a number between 0 and Infinity is given, set a timeout
1717
this.timeoutKey = window.setTimeout(function(){
1818
dummy._performDummyQueueActions();
@@ -48,7 +48,6 @@
4848
while (this._fncQueue.length > 0) {
4949
next = this._fncQueue.pop();
5050

51-
console.log(next);
5251
// if we find another `wait` call in the queue, stop dequeing and pass the
5352
// remaining queued-up function calls to that wait call
5453
if (next.fnc === 'wait') {

0 commit comments

Comments
 (0)