]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Remove refresh dependancy in _setOptions
authorDavid Petersen <public@petersendidit.com>
Sun, 17 Apr 2011 23:53:04 +0000 (19:53 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 28 Apr 2011 16:08:39 +0000 (12:08 -0400)
ui/jquery.ui.tabs.js

index 071fcbc6783ef00e5ad83ef72487a6c434a4f98f..47cca9c376df47059caff8646b77635ff6db6aa2 100755 (executable)
@@ -130,13 +130,26 @@ $.widget( "ui.tabs", {
                        return;
                }
 
+               if ( key === "disabled" ) {
+                       // don't use the widget factory's disabled handling
+                       this._setupDisabled( value );
+                       return;
+               }
+
+               this._super( "_setOption", key, value);
+
                // setting collapsible: false while collapsed; open first panel
                if ( key === "collapsible" && !value && this.options.active === false ) {
                        this._activate( 0 );
                }
 
-               this.options[ key ] = value;
-               this.refresh();
+               if ( key === "event" ) {
+                       this._setupEvents( value );
+               }
+
+               if ( key === "fx" ) {
+                       this._setupFx( value );
+               }
        },
 
        _tabId: function( a ) {