From e22bf22b61e2ab426f8f499d387153bb1ad227a9 Mon Sep 17 00:00:00 2001 From: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com> Date: Sun, 15 May 2022 13:19:28 +0100 Subject: [PATCH] Ensure ACE worker options are set fixes #3610 --- .../editor-client/src/ace/mode/nrjavascript_worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/ace/mode/nrjavascript_worker.js b/packages/node_modules/@node-red/editor-client/src/ace/mode/nrjavascript_worker.js index b26ce0285..310831607 100644 --- a/packages/node_modules/@node-red/editor-client/src/ace/mode/nrjavascript_worker.js +++ b/packages/node_modules/@node-red/editor-client/src/ace/mode/nrjavascript_worker.js @@ -76,7 +76,7 @@ oop.inherits(NRJavaScriptWorker, Mirror); (function() { this.setOptions = function(options) { - this.options = { + o.options = { // undef: true, // unused: true, esversion: 9, @@ -98,7 +98,7 @@ oop.inherits(NRJavaScriptWorker, Mirror); if (options) { for (var opt in options) { if (options.hasOwnProperty(opt)) { - this.options[opt] = options.opt; + o.options[opt] = options[opt]; } } }