summaryrefslogtreecommitdiff
path: root/src/static/js/ace.js
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2014-01-28 14:07:26 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2014-01-28 14:07:26 +0100
commit3f31445abfd3a168f2e32e1e64c5a5d7fc03b2e4 (patch)
tree644843e0fc1962ddb0ee9c04e222a5299c137618 /src/static/js/ace.js
parentb6f354a2de7ecb1810cce8164e09b5acba1d01d5 (diff)
downloadetherpad-lite-3f31445abfd3a168f2e32e1e64c5a5d7fc03b2e4.zip
don't call ace_getInInternationalComposition if editor is not fully loaded
Diffstat (limited to 'src/static/js/ace.js')
-rw-r--r--src/static/js/ace.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/static/js/ace.js b/src/static/js/ace.js
index d2bbb484..addc412f 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();
};