Comparing version 0.3.0 to 0.3.1
/* | ||
*fqueue.js v 0.3.0 | ||
*fqueue.js v 0.3.1 | ||
*Author: Sudhanshu Yadav | ||
@@ -20,4 +20,7 @@ *s-yadav.github.com | ||
var obj = arg[i]; | ||
for (var k in obj) | ||
target[k] = obj[k]; | ||
for (var k in obj) { | ||
if (obj.hasOwnProperty(k)) { | ||
target[k] = obj[k]; | ||
} | ||
} | ||
} | ||
@@ -29,3 +32,3 @@ return target; | ||
for (var i = 0, ln = ary.length; i < ln; i++) { | ||
if (ary[i] == elm) return i | ||
if (ary[i] == elm) return i; | ||
} | ||
@@ -61,3 +64,3 @@ return -1; | ||
for (var i = 0; i < left; i++) { | ||
result.push(func[i].apply(this, argToArray(arguments))) | ||
result.push(func[i].apply(this, argToArray(arguments))); | ||
} | ||
@@ -71,3 +74,3 @@ } | ||
if (this.autoStep && !this.paused) { | ||
this.next() | ||
this.next(); | ||
} | ||
@@ -77,3 +80,3 @@ }, | ||
this.left--; | ||
if (this.left == 0) { | ||
if (this.left === 0) { | ||
this.paused = false; | ||
@@ -119,3 +122,3 @@ //in this way if there are two asynchronous both passing arguments than only one will go | ||
} | ||
} | ||
}; | ||
@@ -138,7 +141,7 @@ var fqueue = function (option) { | ||
if (self.left == 0) { | ||
if (self.left === 0) { | ||
self.paused = false; | ||
self.next.apply(self, argToArray(arguments)); | ||
} | ||
} | ||
}; | ||
@@ -151,3 +154,3 @@ if (settings.autoStart) { | ||
} | ||
}; | ||
//defaults | ||
@@ -158,3 +161,3 @@ fqueue.defaults = { | ||
startParams: [] | ||
} | ||
}; | ||
@@ -161,0 +164,0 @@ //to make fqueue globally accessible |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17460
146