Selectmenu: added destroy method

This commit is contained in:
Felix Nagel 2011-09-24 04:47:11 +02:00
parent 3503c586c4
commit d2a6eadde0

View File

@ -340,6 +340,10 @@ $.widget( "ui.selectmenu", {
},
_destroy: function() {
this.listWrap.remove();
this.newelementWrap.remove();
this.element.show().unbind( '.selectmenu' );
$( document ).unbind( '.selectmenu' );
}
});