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); }; /*@