Skip to content

Commit 5fd470e

Browse files
committed
fixed: destroy method, thx to crob611, see fnagel@e552ead
1 parent 914aad4 commit 5fd470e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,9 @@ $.widget("ui.selectmenu", {
378378
.attr( 'for', this.element.attr( 'id' ) )
379379
.unbind( '.selectmenu' );
380380

381-
if ( o.wrapperElement ) {
382-
this.newelement.find( o.wrapperElement ).remove();
383-
this.list.find( o.wrapperElement ).remove();
381+
if ( this.options.wrapperElement ) {
382+
this.newelement.find( this.options.wrapperElement ).remove();
383+
this.list.find( this.options.wrapperElement ).remove();
384384
} else {
385385
this.newelement.remove();
386386
this.list.remove();

0 commit comments

Comments
 (0)