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 removeElement <f> removeElement
() -> <o> remove item
@*/ @*/
self.superRemove = that.remove.bind(that); that.removeElement = function() {
that.remove = function() {
self.$menu.remove(); self.$menu.remove();
self.superRemove(); return Ox.Element.prototype.removeElement.apply(that, arguments);
return that;
}; };
/*@ /*@