MenuButton: patch removeElement, not remove

This commit is contained in:
rlx 2014-09-23 21:02:27 +02:00
parent aa3a20bbc2
commit 71fdefcf9b

View file

@ -158,14 +158,11 @@ Ox.MenuButton = function(options, self) {
};
/*@
remove <f> remove
() -> <o> remove item
removeElement <f> 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);
};
/*@