diff --git a/lib/ace/worker/v2/worker_client.js b/lib/ace/worker/v2/worker_client.js index 8e42a3aad87..0fe32fc9d43 100644 --- a/lib/ace/worker/v2/worker_client.js +++ b/lib/ace/worker/v2/worker_client.js @@ -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) { diff --git a/lib/ace/worker/worker_client.js b/lib/ace/worker/worker_client.js index 1bd54ffcb05..aa34c24e04d 100644 --- a/lib/ace/worker/worker_client.js +++ b/lib/ace/worker/worker_client.js @@ -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) {