Skip to content
Permalink
Browse files

Tabs: Pass an element instead of jQuery object on initial show. Fixes…

… #6867 - Inconsistent ui.panel contents for show event of tabs widget.
  • Loading branch information
scottgonzalez committed Jan 16, 2011
1 parent 1dc4d64 commit 53dc2d305696c9a347d3bfd113d76e4e47ab8c60
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tabs.js
@@ -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 );

0 comments on commit 53dc2d3

Please sign in to comment.
You can’t perform that action at this time.