properly bind superRemove

This commit is contained in:
rlx 2014-09-20 12:36:23 +02:00
parent 930f9ab4e7
commit f2bb021207

View file

@ -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();