aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
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();
}
});