Permalink
Browse files

Controlgroup: Call refresh() when the value of the excludeInvisible o…

…ption changes. Fixes #6199.
  • Loading branch information...
gabrielschulhof committed Jul 23, 2013
1 parent ec23a71 commit 07ed62a4b92537a0132d5a85e50b6248c8d6349d
Showing with 6 additions and 0 deletions.
  1. +6 −0 js/widgets/controlgroup.js
@@ -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;
}
}
@@ -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 {

0 comments on commit 07ed62a

Please sign in to comment.