properly bind superRemove
This commit is contained in:
parent
930f9ab4e7
commit
f2bb021207
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ Ox.MenuButton = function(options, self) {
|
|||
remove <f> remove
|
||||
() -> <o> remove item
|
||||
@*/
|
||||
self.superRemove = that.remove;
|
||||
self.superRemove = that.remove.bind(that);
|
||||
that.remove = function() {
|
||||
self.$menu.remove();
|
||||
self.superRemove();
|
||||
|
|
Loading…
Reference in a new issue