MenuButton: patch removeElement, not remove
This commit is contained in:
parent
aa3a20bbc2
commit
71fdefcf9b
1 changed files with 3 additions and 6 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
Loading…
Reference in a new issue