Skip to content

Commit

Permalink
Replaced $.proress() to $.status().
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Aug 19, 2024
1 parent 4b61007 commit 5a82087
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Options.prototype.promisify = function(fn, a, b, c) {
});
};

Options.prototype.progress = function() {};
Options.prototype.status = function() {};

Options.prototype.publish = function(value) {
var self = this;
Expand Down Expand Up @@ -1256,8 +1256,8 @@ ActionCaller.prototype.params = function(value) {
return this;
};

ActionCaller.prototype.progress = function(fn) {
this.options.progress = fn;
ActionCaller.prototype.status = function(fn) {
this.options.status = fn;
return this;
};

Expand Down Expand Up @@ -1386,7 +1386,7 @@ ActionCaller.prototype.exec = function() {
} else
$.payload = payload;

$.progress = self.options.progress;
$.status = self.options.status;
action.action($, $.payload);
};

Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- added `Image` global variable
- added `Utils.filestreamer(filename, onbuffer(buffer, next), onend, [buffer_size])`
- fix image bug in the `Image.measureWEBP()` method by [Marek Mraz](https://github.com/Mrazbb)
- added `action.progress(fn)` and caller `$.progress(value)` for actions
- added `action.status(fn)` for handling and `$.status(value)` for calling in actions

========================
0.0.5
Expand Down

0 comments on commit 5a82087

Please sign in to comment.