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 1dc4d64dd4
commit 53dc2d3056

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 );