Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Controlgroup: Call refresh() when the value of the excludeInvisible o…
Browse files Browse the repository at this point in the history
…ption changes. Fixes #6199.
  • Loading branch information
Gabriel Schulhof committed Jul 23, 2013
1 parent ec23a71 commit 07ed62a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/widgets/controlgroup.js
Expand Up @@ -77,6 +77,7 @@ $.widget( "mobile.controlgroup", $.extend( {

// No need to call refresh if the type hasn't changed
if ( this.options.type !== options.type ) {
this.options.type = options.type;
callRefresh = true;
}
}
Expand All @@ -97,6 +98,11 @@ $.widget( "mobile.controlgroup", $.extend( {
this._ui.childWrapper.toggleClass( "ui-shadow", opts.shadow );
}

if ( options.excludeInvisible !== undefined ) {
this.options.excludeInvisible = options.excludeInvisible;
callRefresh = true;
}

if ( internal ) {
this._classes = classes;
} else {
Expand Down

0 comments on commit 07ed62a

Please sign in to comment.