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

@ -26,7 +26,7 @@
var _MAX_LIST_LEVEL = 8;
var Changeset = require('ep_etherpad-lite/static/js/Changeset');
var plugins = require('ep_etherpad-lite/static/js/plugins').plugins;
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
function sanitizeUnicode(s)
{
@ -37,8 +37,6 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
{
browser = browser || {};
var plugins_ = plugins;
var dom = domInterface || {
isNodeText: function(n)
{
@ -448,7 +446,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
var oldAuthorOrNull = null;
if (collectStyles)
{
plugins_.callHook('collectContentPre', {
hooks.callAll('collectContentPre', {
cc: cc,
state: state,
tname: tname,
@ -510,7 +508,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
if (collectStyles)
{
plugins_.callHook('collectContentPost', {
hooks.callAll('collectContentPost', {
cc: cc,
state: state,
tname: tname,