From 71fdefcf9beec5152809650f5e745111bb587b88 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 23 Sep 2014 21:02:27 +0200 Subject: [PATCH] MenuButton: patch removeElement, not remove --- source/Ox.UI/js/Menu/MenuButton.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/Ox.UI/js/Menu/MenuButton.js b/source/Ox.UI/js/Menu/MenuButton.js index 44c01c15..c40ba7a1 100644 --- a/source/Ox.UI/js/Menu/MenuButton.js +++ b/source/Ox.UI/js/Menu/MenuButton.js @@ -158,14 +158,11 @@ Ox.MenuButton = function(options, self) { }; /*@ - remove remove - () -> remove item + removeElement removeElement @*/ - self.superRemove = that.remove.bind(that); - that.remove = function() { + that.removeElement = function() { self.$menu.remove(); - self.superRemove(); - return that; + return Ox.Element.prototype.removeElement.apply(that, arguments); }; /*@