diff options
author | Matthias Bartelmeß <mba@fourplusone.de> | 2012-03-13 21:10:10 +0100 |
---|---|---|
committer | Matthias Bartelmeß <mba@fourplusone.de> | 2012-03-13 21:10:10 +0100 |
commit | b28bfe8e31cf4a95b1242bc35b47201f7560a0a3 (patch) | |
tree | cc44e494bbf7477c1a4a287175f5a0167fb52ed2 /src/static/js/domline.js | |
parent | cccd8a923cfa21c7e248a2a5fcffa54caf512e0b (diff) | |
download | etherpad-lite-b28bfe8e31cf4a95b1242bc35b47201f7560a0a3.zip |
map / forEach use native impl, if available. ace2_common extends the prototype of Array, if not
Diffstat (limited to 'src/static/js/domline.js')
-rw-r--r-- | src/static/js/domline.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/static/js/domline.js b/src/static/js/domline.js index d6dbb74a..d1a65260 100644 --- a/src/static/js/domline.js +++ b/src/static/js/domline.js @@ -29,7 +29,6 @@ var Security = require('./security'); var hooks = require('./pluginfw/hooks'); var Ace2Common = require('./ace2_common'); -var map = Ace2Common.map; var noop = Ace2Common.noop; var identity = Ace2Common.identity; @@ -142,10 +141,10 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) var extraOpenTags = ""; var extraCloseTags = ""; - map(hooks.callAll("aceCreateDomLine", { + hooks.callAll("aceCreateDomLine", { domline: domline, cls: cls - }), function(modifier) + }).map(function(modifier) { cls = modifier.cls; extraOpenTags = extraOpenTags + modifier.extraOpenTags; |