Skip to content

Commit

Permalink
fix: Uncaught TypeError: Cannot read properties of undefined in worke…
Browse files Browse the repository at this point in the history
…r code
  • Loading branch information
andrewnester committed Jun 29, 2022
1 parent c7b3422 commit ce068ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ace/worker/v2/worker_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ define(function (require, exports, module) {

this.$doc = doc;
this.call("setValue", [doc.getValue()]);
doc.on("change", this.changeListener);
doc.on("change", this.changeListener, true);
};

this.changeListener = function (delta) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ace/worker/worker_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ var WorkerClient = function(worker) {

this.$doc = doc;
this.call("setValue", [doc.getValue()]);
doc.on("change", this.changeListener);
doc.on("change", this.changeListener, true);
};

this.changeListener = function(delta) {
Expand Down

0 comments on commit ce068ac

Please sign in to comment.