Permalink
Browse files

Controlgroup: Handle child elements that don't have options defined

Closes gh-1719
  • Loading branch information...
1 parent 55cd948 commit f67f9293ae962dc814e66ac110b4f82404d14f69 @scottgonzalez scottgonzalez committed Jul 11, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/widgets/controlgroup.js
@@ -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

0 comments on commit f67f929

Please sign in to comment.