diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:39:15 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:39:15 -0400 |
commit | 0fc682a8dadc894caefe27c5a0fccf1eca30780d (patch) | |
tree | fa1975cab9b23af13cfa8f78056562f761306b6e /ui | |
parent | 1a7958a43096ced70043514055e8f62422d860fd (diff) | |
download | jquery-ui-0fc682a8dadc894caefe27c5a0fccf1eca30780d.tar.gz jquery-ui-0fc682a8dadc894caefe27c5a0fccf1eca30780d.zip |
Tabs: Removed enable and disable events. Fixes #7160 - Tabs: Remove enable and disable events.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 5f6d87eee..ed0ca1036 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -889,46 +889,6 @@ if ( $.uiBackCompat !== false ) { } }); - // enable/disable events - $.widget( "ui.tabs", $.ui.tabs, { - options: { - enable: null, - disable: null - }, - - enable: function( index ) { - var options = this.options, - trigger; - - if ( index && options.disabled === true || - ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) !== -1 ) ) { - trigger = true; - } - - this._superApply( arguments ); - - if ( trigger ) { - this._trigger( "enable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); - } - }, - - disable: function( index ) { - var options = this.options, - trigger; - - if ( index && options.disabled === false || - ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) === -1 ) ) { - trigger = true; - } - - this._superApply( arguments ); - - if ( trigger ) { - this._trigger( "disable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) ); - } - } - }); - // add/remove methods and events $.widget( "ui.tabs", $.ui.tabs, { options: { |