]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete combobox demo: Define this.wrapper for use inside destroy().
authorScott González <scott.gonzalez@gmail.com>
Sat, 28 Apr 2012 20:07:17 +0000 (16:07 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 28 Apr 2012 20:07:17 +0000 (16:07 -0400)
demos/autocomplete/combobox.html

index 2fd55bc29d389adff30aa12e73eca91877c782f2..e2ef40dd9a446166725c6ac872a023b8fdddccb3 100644 (file)
@@ -42,7 +42,7 @@
                                        select = this.element.hide(),
                                        selected = select.children( ":selected" ),
                                        value = selected.val() ? selected.text() : "",
-                                       wrapper = $( "<span>" )
+                                       wrapper = this.wrapper = $( "<span>" )
                                                .addClass( "ui-combobox" )
                                                .insertAfter( select );