Select: patch removeElement, not remove

This commit is contained in:
rlx 2014-09-23 21:02:57 +02:00
parent 71fdefcf9b
commit 39d1b034ab

View file

@ -247,12 +247,11 @@ Ox.Select = function(options, self) {
};
/*@
remove <f> remove
removeElement <f> 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);
};
/*@