Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[controlgroup] Need to ignore value of excludeInvisible during _creat…

…e(), because all children will be invisible, since the page itself is invisible during enhance
  • Loading branch information...
commit 37eb9884bd4d5d928b469f987a84ff394595662c 1 parent bb945fc
@gabrielschulhof gabrielschulhof authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 js/widgets/controlgroup.js
View
10 js/widgets/controlgroup.js
@@ -45,7 +45,7 @@ define( [ "jquery",
self._setOption( key, value, true );
});
- this.refresh();
+ this._refresh( true );
},
_flipClasses: function( els, flCorners ) {
@@ -83,9 +83,9 @@ define( [ "jquery",
this.element.toggleClass( "ui-mini", value );
},
- refresh: function() {
+ _refresh: function( create ) {
var els = this.element
- .find( ".ui-btn" + ( this.options.excludeInvisible ? ":visible" : "" ) )
+ .find( ".ui-btn" + ( ( !create && this.options.excludeInvisible ) ? ":visible" : "" ) )
.not( '.ui-slider-handle' ),
corners = [ true, true ];
@@ -94,6 +94,10 @@ define( [ "jquery",
}
this._flipClasses( els, corners );
+ },
+
+ refresh: function() {
+ this._refresh( false );
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.