Permalink
Browse files

Selectmenu: added destroy method

  • Loading branch information...
1 parent 3503c58 commit d2a6eadde015fcd49526a84100157e229ff5845a @fnagel fnagel committed Sep 24, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.selectmenu.js
@@ -340,6 +340,10 @@ $.widget( "ui.selectmenu", {
},
_destroy: function() {
+ this.listWrap.remove();
+ this.newelementWrap.remove();
+ this.element.show().unbind( '.selectmenu' );
+ $( document ).unbind( '.selectmenu' );
}
});

0 comments on commit d2a6ead

Please sign in to comment.