aboutsummaryrefslogtreecommitdiffstats
path: root/infrastructure/ace/www/linestylefilter.js
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2010-03-27 16:44:50 +0100
committerEgil Moeller <egil.moller@freecode.no>2010-03-27 16:44:50 +0100
commit0b3182ce6e606d7f87cfd25fb58602980b41bc97 (patch)
tree0e5d00df3a336da349b15bfa2820d5b6657ea8ed /infrastructure/ace/www/linestylefilter.js
parentf4ecb89a52eeeb50cea55894421fa9b4e1b26bd9 (diff)
downloadetherpad-0b3182ce6e606d7f87cfd25fb58602980b41bc97.tar.gz
etherpad-0b3182ce6e606d7f87cfd25fb58602980b41bc97.tar.xz
etherpad-0b3182ce6e606d7f87cfd25fb58602980b41bc97.zip
Bugfix for the ace callHook support
Diffstat (limited to '')
-rw-r--r--infrastructure/ace/www/linestylefilter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/infrastructure/ace/www/linestylefilter.js b/infrastructure/ace/www/linestylefilter.js
index d69376a..c163120 100644
--- a/infrastructure/ace/www/linestylefilter.js
+++ b/infrastructure/ace/www/linestylefilter.js
@@ -238,7 +238,7 @@ linestylefilter.textAndClassFuncSplitter = function(func, splitPointsOpt) {
linestylefilter.getFilterStack = function(lineText, textAndClassFunc, browser) {
var func = linestylefilter.getURLFilter(lineText, textAndClassFunc);
- var hookFilters = ((top == undefined) ? plugins : top.plugins).callHook(
+ var hookFilters = (function () { try { return top.plugins; } catch (e) { return plugins; }; })().callHook(
"aceGetFilterStack", {linestylefilter:linestylefilter, browser:browser});
hookFilters.map(function (hookFilter) {
func = hookFilter(lineText, func);