Skip to content

Commit 1b7e780

Browse files
committed
Fixed callback with $ in the ACTION().callback($).
1 parent 0716336 commit 1b7e780

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

builders.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Options.prototype.successful = function(callback) {
247247
};
248248
};
249249

250-
Options.prototype.callback = Options.prototype.pipe = function(value) {
250+
Options.prototype.callback = Options.prototype.output = Options.prototype.pipe = function(value) {
251251

252252
var self = this;
253253

@@ -1555,7 +1555,7 @@ ActionCaller.prototype.finish = function(value) {
15551555
if (self.error.length)
15561556
$.invalid(self.error);
15571557
else
1558-
$.callback.call(self.$, value === undefined ? self.$.response : value);
1558+
$.callback.call($, value === undefined ? self.$.response : value);
15591559
} else
15601560
self.options.callback.call(self.$, self.error.length ? self.error : null, value === undefined ? self.$.response : value);
15611561

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- extended `NEWAPI(type, [config], config)` by adding the `config` argument
2929
- replaced `Url.parse()` with `new URL()`
3030
- fixed `NEWFORK()` method
31+
- fixed callback with `$` in the `ACTION().callback($)`
3132

3233
========================
3334
0.0.15

0 commit comments

Comments
 (0)