Skip to content
Permalink
Browse files

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

  • Loading branch information...
fnagel committed Oct 10, 2011
1 parent f70a247 commit 8944abce67c69553baae15fd66b5216eeb8f44f7
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
@@ -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();
}
});

0 comments on commit 8944abc

Please sign in to comment.
You can’t perform that action at this time.