Comparing version 0.3.5 to 0.3.6
@@ -77,3 +77,3 @@ var UTIL = require('util'), | ||
this.lock(); | ||
return Q.call(cb, context) | ||
return Q.fcall(cb.bind(context)) | ||
.fin(function() { | ||
@@ -80,0 +80,0 @@ _this.unlock(); |
@@ -258,6 +258,6 @@ var Q = require('q'), | ||
* @param {Plan} plan Plan from which this job is. | ||
* @returns {Promise} The result of Q.call. | ||
* @returns {Promise} The result of Q.fcall. | ||
*/ | ||
work: function(job, plan) { | ||
return Q.call(function() { | ||
return Q.fcall(function() { | ||
@@ -277,3 +277,3 @@ // Skip job if its node has no run() method | ||
}, this); | ||
}.bind(this)); | ||
}, | ||
@@ -280,0 +280,0 @@ |
{ | ||
"name": "apw", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"homepage": "http://github.com/bem/apw", | ||
@@ -28,3 +28,3 @@ "author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (http://github.com/afelix)", | ||
"dependencies": { | ||
"q": "~0.8.5", | ||
"q": "~0.8.8", | ||
"coa": "0.3.x", | ||
@@ -31,0 +31,0 @@ "inherit": "1" |
93777
Updatedq@~0.8.8