mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
map / forEach use native impl, if available. ace2_common extends the prototype of Array, if not
This commit is contained in:
parent
cccd8a923c
commit
b28bfe8e31
4 changed files with 44 additions and 60 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue