Selectmenu: fixed destroy method, show original select again, thx to @jzaefferer

This commit is contained in:
Felix Nagel 2011-10-10 20:08:47 +02:00
parent f70a24790c
commit 8944abce67

View File

@ -60,12 +60,11 @@ $.widget( "ui.selectmenu", {
}
});
that._addNewelement();
that._addNewelement();
that._bind( that.newelement, that._newelementEvents );
that._addList();
that.refresh();
that.refresh();
},
_addNewelement: function() {
@ -414,6 +413,7 @@ $.widget( "ui.selectmenu", {
_destroy: function() {
this.listWrap.remove();
this.newelementWrap.remove();
this.element.show();
}
});