Skip to content

Commit

Permalink
Controlgroup: Handle child elements that don't have options defined
Browse files Browse the repository at this point in the history
Closes gh-1719
  • Loading branch information
scottgonzalez committed Jul 13, 2016
1 parent 55cd948 commit f67f929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/widgets/controlgroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ return $.widget( "ui.controlgroup", {
// first / last elements until all enhancments are done.
if ( that[ "_" + widget + "Options" ] ) {
options = that[ "_" + widget + "Options" ]( "middle" );
} else {
options = { classes: {} };
}

// Find instances of this widget inside controlgroup and init them
Expand Down

0 comments on commit f67f929

Please sign in to comment.