aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/ace/www/domline.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--infrastructure/ace/www/domline.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/infrastructure/ace/www/domline.js b/infrastructure/ace/www/domline.js
index 38cddf5..90e9943 100644
--- a/infrastructure/ace/www/domline.js
+++ b/infrastructure/ace/www/domline.js
@@ -101,7 +101,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) {
var extraOpenTags = "";
var extraCloseTags = "";
- ((top == undefined) ? plugins : top.plugins).callHook(
+ (function () { try { return top.plugins; } catch (e) { return plugins; }; })().callHook(
"aceCreateDomLine", {domline:domline, cls:cls}
).map(function (modifier) {
cls = modifier.cls;