From 3f31445abfd3a168f2e32e1e64c5a5d7fc03b2e4 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Tue, 28 Jan 2014 14:07:26 +0100 Subject: [PATCH] don't call ace_getInInternationalComposition if editor is not fully loaded --- src/static/js/ace.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/static/js/ace.js b/src/static/js/ace.js index d2bbb4847..addc412fc 100644 --- a/src/static/js/ace.js +++ b/src/static/js/ace.js @@ -124,6 +124,7 @@ function Ace2Editor() editor.getInInternationalComposition = function() { + if (!loaded) return false; return info.ace_getInInternationalComposition(); };