]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog tests: Fixed calls to $.contains() that were passing jQuery objects instead...
authorScott González <scott.gonzalez@gmail.com>
Fri, 13 Jul 2012 19:52:32 +0000 (15:52 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 13 Jul 2012 19:52:32 +0000 (15:52 -0400)
tests/unit/dialog/dialog_tickets.js

index 201ea3a87a3b6fe10ef446d9d92b051cf3fe2139..5c3277c2f310bf8f8091b28039f46d4344068c46 100644 (file)
@@ -10,7 +10,7 @@ asyncTest( "#3123: Prevent tabbing out of modal dialogs", function() {
 
        var el = $( "<div><input id='t3123-first'><input id='t3123-last'></div>" ).dialog({ modal: true }),
                inputs = el.find( "input" ),
-               widget = el.dialog( "widget" );
+               widget = el.dialog( "widget" )[ 0 ];
 
        function checkTab() {
                ok( $.contains( widget, document.activeElement ), "Tab key event moved focus within the modal" );