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
|
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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
|
Loading…
Reference in a new issue