From 7f83cd949559588e0990d770c0e78ec34f1abd2b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 20 Sep 2014 12:31:37 +0200 Subject: [PATCH] make superRemove a bound function --- source/Ox.UI/js/Form/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Select.js b/source/Ox.UI/js/Form/Select.js index 0588c417..49c5ae1c 100644 --- a/source/Ox.UI/js/Form/Select.js +++ b/source/Ox.UI/js/Form/Select.js @@ -249,7 +249,7 @@ Ox.Select = function(options, self) { /*@ remove remove @*/ - self.superRemove = that.remove; + self.superRemove = that.remove.bind(that); that.remove = function() { self.$menu.remove(); self.superRemove();