Skip to content

Commit f528eab

Browse files
committed
Improved calling $.status() and $.progress().
1 parent 1cf79fe commit f528eab

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

builders.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,13 @@ Options.prototype.promisify = function(fn, a, b, c) {
153153
});
154154
};
155155

156-
Options.prototype.status = function(){};
157-
Options.prototype.progress = function(){};
156+
Options.prototype.status = function(a, b, c, d) {
157+
this.status2?.call(this, a, b, c, d);
158+
};
159+
160+
Options.prototype.progress = function(){
161+
this.progress2?.call(this, a, b, c, d);
162+
};
158163

159164
Options.prototype.publish = function(value) {
160165
var self = this;
@@ -1503,10 +1508,10 @@ ActionCaller.prototype.exec = function() {
15031508
$.payload = payload;
15041509

15051510
if (self.options.status)
1506-
$.status = self.options.status;
1511+
$.status2 = self.options.status;
15071512

15081513
if (self.options.progress)
1509-
$.progress = self.options.progress;
1514+
$.progress2 = self.options.progress;
15101515

15111516
if (action.middleware) {
15121517
action.middleware.wait(function(name, next) {

0 commit comments

Comments
 (0)