]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsi...
authorScott González <scott.gonzalez@gmail.com>
Sun, 16 Jan 2011 21:19:58 +0000 (16:19 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sun, 16 Jan 2011 21:20:20 +0000 (16:20 -0500)
ui/jquery.ui.tabs.js

index 7c615c8727be216cf498aadeed5dd1c38282d296..f006c5891ff3a6505bfc1f9a6494d0c655e1167d 100644 (file)
@@ -216,7 +216,7 @@ $.widget( "ui.tabs", {
                                // seems to be expected behavior that the show callback is fired
                                self.element.queue( "tabs", function() {
                                        self._trigger( "show", null,
-                                               self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ) ) );
+                                               self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) )[ 0 ] ) );
                                });
 
                                this.load( o.selected );