Skip to content

Commit 4b48b80

Browse files
author
s.vychegzhanin
committed
defer reject fix
1 parent 6293a9a commit 4b48b80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/prow.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
if (timelimit) {
3636
timeoutReject = setTimeout(reject.bind(this, "PROW TIMEOUT"), timelimit);
3737
}
38-
defer.resolve = function() {
38+
defer.resolve = function(result) {
3939
clearTimeout(timeoutResolve);
4040
resolve.apply(this, arguments);
4141
};
42-
defer.reject = function() {
42+
defer.reject = function(reason) {
4343
clearTimeout(timeoutReject);
44-
reject.apply(this);
44+
reject.apply(this, arguments);
4545
};
4646
});
4747
return defer;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prow",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "JS Promises Flow Lib",
55
"main": "dist/prow.js",
66
"scripts": {

0 commit comments

Comments
 (0)