]> 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>
Mon, 7 May 2012 13:49:18 +0000 (09:49 -0400)
(cherry picked from commit c974d0fc69849d9e7854a532da01f00587d04527)

demos/autocomplete/combobox.html

index 6fb647c8c890fcae46ec19f6dc887ce8c7038250..693c860d6ecc9ca9f4403b578b0243bb5185ea1f 100644 (file)
@@ -40,7 +40,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 );