]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Don't hard-code widget data key. Fixes #9097 - UI dialog inheritance.
authorScott González <scott.gonzalez@gmail.com>
Mon, 18 Feb 2013 21:07:15 +0000 (16:07 -0500)
committerScott González <scott.gonzalez@gmail.com>
Mon, 18 Feb 2013 21:07:15 +0000 (16:07 -0500)
ui/jquery.ui.dialog.js

index 85dbddda26637b7499054441b903dabb2fa0d8ca..9d61cf745f1cab71a1f53e5978ba5f78d00574e7 100644 (file)
@@ -697,6 +697,7 @@ $.widget( "ui.dialog", {
                        return;
                }
 
+               var widgetFullName = this.widgetFullName;
                if ( !$.ui.dialog.overlayInstances ) {
                        // Prevent use of anchors and inputs.
                        // We use a delay in case the overlay is created from an
@@ -711,7 +712,7 @@ $.widget( "ui.dialog", {
                                                                !$( event.target ).closest(".ui-datepicker").length ) {
                                                        event.preventDefault();
                                                        $(".ui-dialog:visible:last .ui-dialog-content")
-                                                               .data("ui-dialog")._focusTabbable();
+                                                               .data( widgetFullName )._focusTabbable();
                                                }
                                        });
                                }