aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-10-10 20:08:47 +0200
committerFelix Nagel <info@felixnagel.com>2011-10-10 20:08:47 +0200
commit8944abce67c69553baae15fd66b5216eeb8f44f7 (patch)
treeb0e4915d2872643b6a0784c265dbf37f0bb48da7 /ui/jquery.ui.selectmenu.js
parentf70a24790c8bb626048052315ae5c6e0b485d064 (diff)
downloadjquery-ui-8944abce67c69553baae15fd66b5216eeb8f44f7.tar.gz
jquery-ui-8944abce67c69553baae15fd66b5216eeb8f44f7.zip
Selectmenu: fixed destroy method, show original select again, thx to @jzaefferer
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 4b385f6dd..113c53e31 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/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();
}
});