make superRemove a bound function

This commit is contained in:
rlx 2014-09-20 12:31:37 +02:00
parent 2311db5aa0
commit 7f83cd9495

View file

@ -249,7 +249,7 @@ Ox.Select = function(options, self) {
/*@
remove <f> remove
@*/
self.superRemove = that.remove;
self.superRemove = that.remove.bind(that);
that.remove = function() {
self.$menu.remove();
self.superRemove();