From 651daf36c0af3549b1e885f30fd16f711d1553fe Mon Sep 17 00:00:00 2001 From: stefanwalther Date: Sat, 12 Jul 2014 02:03:21 +0200 Subject: [PATCH 1/2] Add option "useAnnotations" to enable/disable annotations in the current session. --- src/ui-ace.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui-ace.js b/src/ui-ace.js index 053c30e..8ee773f 100644 --- a/src/ui-ace.js +++ b/src/ui-ace.js @@ -47,6 +47,10 @@ angular.module('ui.ace', []) session.setUseSoftTabs(opts.useSoftTabs); } + if (angular.isDefined(opts.useAnnotations)) { + session.setOption("useWorker", opts.useAnnotations); + } + // commands if (angular.isDefined(opts.disableSearch) && opts.disableSearch) { acee.commands.addCommands([ From 754f91ae2a10a8b6de8e8b508d3345f3cc1a8e4d Mon Sep 17 00:00:00 2001 From: stefanwalther Date: Sat, 12 Jul 2014 11:44:29 +0200 Subject: [PATCH 2/2] Add option "useAnnotations" to enable/disable annotations in the current session --- src/ui-ace.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui-ace.js b/src/ui-ace.js index 8ee773f..77df494 100644 --- a/src/ui-ace.js +++ b/src/ui-ace.js @@ -48,7 +48,7 @@ angular.module('ui.ace', []) } if (angular.isDefined(opts.useAnnotations)) { - session.setOption("useWorker", opts.useAnnotations); + session.setOption('useWorker', opts.useAnnotations); } // commands