mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed destroy method, show original select again, thx to @jzaefferer
This commit is contained in:
parent
f70a24790c
commit
8944abce67
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user