mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: added destroy method
This commit is contained in:
parent
3503c586c4
commit
d2a6eadde0
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -340,6 +340,10 @@ $.widget( "ui.selectmenu", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_destroy: function() {
|
_destroy: function() {
|
||||||
|
this.listWrap.remove();
|
||||||
|
this.newelementWrap.remove();
|
||||||
|
this.element.show().unbind( '.selectmenu' );
|
||||||
|
$( document ).unbind( '.selectmenu' );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user