]> 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:19:58 +0000 (16:19 -0500)
ui/jquery.ui.tabs.js

index 82da51d5bd58828f99d6ba85d6c22225bff98a56..8d5e9b207ab500b52465102d9dc30363356f8e68 100755 (executable)
@@ -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 );