From 0b3182ce6e606d7f87cfd25fb58602980b41bc97 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Sat, 27 Mar 2010 16:44:50 +0100 Subject: Bugfix for the ace callHook support --- infrastructure/ace/www/domline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'infrastructure/ace/www/domline.js') 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; -- cgit v1.2.3