Skip to content

Commit

Permalink
Fixed the watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Sep 10, 2019
1 parent 14d3551 commit c76ad17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
if (!this._orig._watcher) this._orig._watcher = new _W();
var watcher = this._orig._watcher._image();
this._push(_onChange, [watcher, arg]);
return watcher;
return watcher._thenable();
};

_J.prototype._close = function() {
Expand Down Expand Up @@ -511,11 +511,11 @@
}
_W.prototype.connect = function(arg) {
this._push(_connectW, [arg]);
return this;
return this._thenable();
};
_W.prototype.disconnect = function(arg) {
this._push(_disconnectW, [arg]);
return this;
return this._thenable();
};
function _changed(x0, y0, x1, y1) {
var i;
Expand Down

0 comments on commit c76ad17

Please sign in to comment.