summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-16 16:19:58 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-16 16:20:20 -0500
commitc6394d7afae12739a6302fd84cf15d7e7a2cc482 (patch)
tree24c3f0346dd90047274e415a42f4dd4a3139056e
parenta7aa65d1fcbb21f6591985d05e147daa23df60d5 (diff)
downloadjquery-ui-c6394d7afae12739a6302fd84cf15d7e7a2cc482.tar.gz
jquery-ui-c6394d7afae12739a6302fd84cf15d7e7a2cc482.zip
Tabs: Pass an element instead of jQuery object on initial show. Fixes #6867 - Inconsistent ui.panel contents for show event of tabs widget.
-rw-r--r--ui/jquery.ui.tabs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 7c615c872..f006c5891 100644
--- a/ui/jquery.ui.tabs.js
+++ b/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 );