diff options
author | John McLear <john@mclear.co.uk> | 2015-05-22 11:09:21 +0100 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-05-22 11:09:21 +0100 |
commit | 757ad765d3d7fca4e94347962423cb65b1a598d4 (patch) | |
tree | 0b7c5979f790ef34ac785a77697159f3b4c2933c | |
parent | 0eb8b800cfbfeff13931218677e5a479852fe08a (diff) | |
download | etherpad-lite-757ad765d3d7fca4e94347962423cb65b1a598d4.zip |
use removeItem instead of remove namespace
-rw-r--r-- | src/node/utils/toolbar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/utils/toolbar.js b/src/node/utils/toolbar.js index 97eb2ffa..f040fb88 100644 --- a/src/node/utils/toolbar.js +++ b/src/node/utils/toolbar.js @@ -244,7 +244,7 @@ module.exports = { buttons = [] }else{ // Remove Save Revision from the right menu - buttons[0].remove("savedrevision"); + buttons[0].removeItem("savedrevision"); } } @@ -255,7 +255,7 @@ module.exports = { } }; -Array.prototype.remove = function() { +Array.prototype.removeItem = function() { var what, a = arguments, L = a.length, ax; while (L && this.length) { what = a[--L]; |