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...
1 parent a7aa65d commit c6394d7afae12739a6302fd84cf15d7e7a2cc482 @scottgonzalez scottgonzalez committed Jan 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tabs.js
View
@@ -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 c6394d7

Please sign in to comment.