Skip to content

Commit

Permalink
Tabs: Pass an element instead of jQuery object on initial show. Fixes…
Browse files Browse the repository at this point in the history
… #6867 - Inconsistent ui.panel contents for show event of tabs widget.
  • Loading branch information
scottgonzalez committed Jan 16, 2011
1 parent a7aa65d commit c6394d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -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 );
Expand Down

0 comments on commit c6394d7

Please sign in to comment.