Made ace actually use the new hooks system, and removed remnants of old system

This commit is contained in:
Egil Moeller 2012-03-01 19:22:02 +01:00
parent 81440cd856
commit df531a7b2b
6 changed files with 22 additions and 55 deletions

View file

@ -27,7 +27,7 @@
// requires: undefined
var Security = require('ep_etherpad-lite/static/js/security');
var plugins = require('ep_etherpad-lite/static/js/plugins').plugins;
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
var map = require('ep_etherpad-lite/static/js/ace2_common').map;
var domline = {};
@ -145,9 +145,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument)
var extraOpenTags = "";
var extraCloseTags = "";
var plugins_ = plugins;
map(plugins_.callHook("aceCreateDomLine", {
map(hooks.callAll("aceCreateDomLine", {
domline: domline,
cls: cls
}), function(modifier)