From 757ad765d3d7fca4e94347962423cb65b1a598d4 Mon Sep 17 00:00:00 2001 From: John McLear Date: Fri, 22 May 2015 11:09:21 +0100 Subject: [PATCH] use removeItem instead of remove namespace --- src/node/utils/toolbar.js | 4 ++-- 1 file 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];