use removeItem instead of remove namespace

pull/2678/head
John McLear 2015-05-22 11:09:21 +01:00
parent 0eb8b800cf
commit 757ad765d3
1 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ module.exports = {
buttons = [] buttons = []
}else{ }else{
// Remove Save Revision from the right menu // 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; var what, a = arguments, L = a.length, ax;
while (L && this.length) { while (L && this.length) {
what = a[--L]; what = a[--L];