diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:46:54 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-25 05:46:54 -0400 |
commit | a9053d93008e203391206cb743e873064fc8198b (patch) | |
tree | 27532f9816232bf7ae77d816e5291ada764b3c76 /ui | |
parent | fb525e1cb10ce5959df28b0cbd29ebdc96c266f4 (diff) | |
download | jquery-ui-a9053d93008e203391206cb743e873064fc8198b.tar.gz jquery-ui-a9053d93008e203391206cb743e873064fc8198b.zip |
Tabs: Removed selected option. Fixes #7152 - Tabs: Remove selected option.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index cc9e93b7d..09946072e 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -1010,42 +1010,6 @@ if ( $.uiBackCompat !== false ) { } }); - // selected option - $.widget( "ui.tabs", $.ui.tabs, { - _create: function() { - var options = this.options; - if ( options.active === null && options.selected !== undefined ) { - options.active = options.selected === -1 ? false : options.selected; - } - this._super(); - options.selected = options.active; - if ( options.selected === false ) { - options.selected = -1; - } - }, - - _setOption: function( key, value ) { - if ( key !== "selected" ) { - return this._super( key, value ); - } - - var options = this.options; - this._super( "active", value === -1 ? false : value ); - options.selected = options.active; - if ( options.selected === false ) { - options.selected = -1; - } - }, - - _eventHandler: function() { - this._superApply( arguments ); - this.options.selected = this.options.active; - if ( this.options.selected === false ) { - this.options.selected = -1; - } - } - }); - // load event $.widget( "ui.tabs", $.ui.tabs, { _trigger: function( type, event, data ) { |