summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();