aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2010-12-24 18:06:47 +0100
committerFelix Nagel <info@felixnagel.com>2010-12-24 18:06:47 +0100
commit5fd470ec7f77582dd562d2366951cf7f43947d29 (patch)
tree29b6db778ba37fb11ffa00d336a32b49487704f0
parent914aad415519be9791b7752b47d760bcef3691ae (diff)
downloadjquery-ui-5fd470ec7f77582dd562d2366951cf7f43947d29.tar.gz
jquery-ui-5fd470ec7f77582dd562d2366951cf7f43947d29.zip
fixed: destroy method, thx to crob611, see https://github.com/fnagel/jquery-ui/commit/e552eade16bc3fc9dbb02f2861300cbdb4493fcc
-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 db4a1b865..015399c01 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -378,9 +378,9 @@ $.widget("ui.selectmenu", {
.attr( 'for', this.element.attr( 'id' ) )
.unbind( '.selectmenu' );
- if ( o.wrapperElement ) {
- this.newelement.find( o.wrapperElement ).remove();
- this.list.find( o.wrapperElement ).remove();
+ if ( this.options.wrapperElement ) {
+ this.newelement.find( this.options.wrapperElement ).remove();
+ this.list.find( this.options.wrapperElement ).remove();
} else {
this.newelement.remove();
this.list.remove();