]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: destroy method, thx to crob611, see https://github.com/fnagel/jquery-ui/commit...
authorFelix Nagel <info@felixnagel.com>
Fri, 24 Dec 2010 17:06:47 +0000 (18:06 +0100)
committerFelix Nagel <info@felixnagel.com>
Fri, 24 Dec 2010 17:06:47 +0000 (18:06 +0100)
ui/jquery.ui.selectmenu.js

index db4a1b865537e4656b1fc83458f0a8e76a199a29..015399c01860e4c440c309f736cd9f5c5793805e 100644 (file)
@@ -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();