Skip to content

Commit f67f929

Browse files
committed
Controlgroup: Handle child elements that don't have options defined
Closes gh-1719
1 parent 55cd948 commit f67f929

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/widgets/controlgroup.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ return $.widget( "ui.controlgroup", {
109109
// first / last elements until all enhancments are done.
110110
if ( that[ "_" + widget + "Options" ] ) {
111111
options = that[ "_" + widget + "Options" ]( "middle" );
112+
} else {
113+
options = { classes: {} };
112114
}
113115

114116
// Find instances of this widget inside controlgroup and init them

0 commit comments

Comments
 (0)