Comparing version 0.5.1 to 0.5.2
{ | ||
"name": "q", | ||
"description": "A library for promises (CommonJS/Promises/A,B,D)", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"homepage": "http://github.com/kriskowal/q/", | ||
@@ -6,0 +6,0 @@ "author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)", |
10
q.js
@@ -638,7 +638,9 @@ // vim:ts=4:sts=4:sw=4: | ||
return when(promise, function (value) { | ||
callback(value, undefined); | ||
return value; | ||
return when(callback(value, undefined), function () { | ||
return value; | ||
}); | ||
}, function (reason) { | ||
callback(undefined, reason); | ||
return reject(reason); | ||
return when(callback(undefined, reason), function () { | ||
return reject(reason); | ||
}); | ||
}); | ||
@@ -645,0 +647,0 @@ } |
Sorry, the diff of this file is not supported yet
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
129882
2676