diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:44:22 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:44:22 -0400 |
commit | a1fd49fb2944a7dbe76e81ba648c2b56e7c6651d (patch) | |
tree | 731a82e580915a3fa20c548d6679b5543d7a9a1a /ui/jquery.ui.tabs.js | |
parent | 7cf2719d0c406c7ff17c7e784c0e1e6eb23b562a (diff) | |
download | jquery-ui-a1fd49fb2944a7dbe76e81ba648c2b56e7c6651d.tar.gz jquery-ui-a1fd49fb2944a7dbe76e81ba648c2b56e7c6651d.zip |
Tabs: Removed show event. Fixes #7155 - Tabs: Remove show event.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 10cdaecd4..4a8287305 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -1046,20 +1046,11 @@ if ( $.uiBackCompat !== false ) { } }); - // show and select event + // select event $.widget( "ui.tabs", $.ui.tabs, { options: { - show: null, select: null }, - _create: function() { - this._super(); - if ( this.options.active !== false ) { - this._trigger( "show", null, this._ui( - this.active.find( ".ui-tabs-anchor" )[ 0 ], - this._getPanelForTab( this.active )[ 0 ] ) ); - } - }, _trigger: function( type, event, data ) { var ret = this._superApply( arguments ); if ( !ret ) { @@ -1071,12 +1062,6 @@ if ( $.uiBackCompat !== false ) { panel: data.newPanel[ 0 ], index: data.newTab.closest( "li" ).index() }); - } else if ( type === "activate" && data.newTab.length ) { - ret = this._super( "show", event, { - tab: data.newTab.find( ".ui-tabs-anchor" )[ 0 ], - panel: data.newPanel[ 0 ], - index: data.newTab.closest( "li" ).index() - }); } return ret; } |