Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "qq", | ||
"description": "A heavy-weight library for promises, based on Q", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"homepage": "http://github.com/kriskowal/qq/", | ||
@@ -31,3 +31,3 @@ "author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)", | ||
"dependencies": { | ||
"q": ">=0.5.2" | ||
"q": ">=0.7.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
23
qq.js
@@ -14,2 +14,9 @@ (function (require, exports) { | ||
// ES5 shim | ||
var isArray = | ||
Array.isArray = | ||
Array.isArray || function (object) { | ||
return Object.prototype.toString.call(o) === "[object Array]"; | ||
}; | ||
// Copyright (C) 2010 Google Inc. | ||
@@ -208,9 +215,11 @@ // | ||
for (var i in object) { | ||
(function (i, value) { | ||
synchronize = Q.when(synchronize, function () { | ||
return Q.when(deep(value), function (value) { | ||
object[i] = value; | ||
if (Object.prototype.hasOwnProperty.call(object, i)) { | ||
(function (i, value) { | ||
synchronize = Q.when(synchronize, function () { | ||
return Q.when(deep(value), function (value) { | ||
object[i] = value; | ||
}); | ||
}); | ||
}); | ||
})(i, object[i]); | ||
})(i, object[i]); | ||
} | ||
} | ||
@@ -320,3 +329,3 @@ return Q.when(synchronize, function () { | ||
}; | ||
if (Array.isArray(constructor)) { | ||
if (isArray(constructor)) { | ||
constructor.forEach(forward); | ||
@@ -323,0 +332,0 @@ } else { |
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
25056
9
395
Updatedq@>=0.7.0