From 39d1b034ab70a3efd53af383698e1dce5cee6481 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Tue, 23 Sep 2014 21:02:57 +0200 Subject: [PATCH] Select: patch removeElement, not remove --- source/Ox.UI/js/Form/Select.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Form/Select.js b/source/Ox.UI/js/Form/Select.js index 49c5ae1c..26ac36ca 100644 --- a/source/Ox.UI/js/Form/Select.js +++ b/source/Ox.UI/js/Form/Select.js @@ -247,12 +247,11 @@ Ox.Select = function(options, self) { }; /*@ - remove remove + removeElement removeElement @*/ - self.superRemove = that.remove.bind(that); - that.remove = function() { + that.removeElement = function() { self.$menu.remove(); - self.superRemove(); + return Ox.Element.prototype.removeElement.apply(that, arguments); }; /*@