Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget.

This commit is contained in:
Scott González 2011-01-16 16:19:58 -05:00
parent a7aa65d1fc
commit c6394d7afa

View File

@ -216,7 +216,7 @@ $.widget( "ui.tabs", {
// seems to be expected behavior that the show callback is fired // seems to be expected behavior that the show callback is fired
self.element.queue( "tabs", function() { self.element.queue( "tabs", function() {
self._trigger( "show", null, 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 ); this.load( o.selected );