From: Scott González Date: Mon, 11 Jul 2016 15:32:39 +0000 (-0400) Subject: Controlgroup: Handle child elements that don't have options defined X-Git-Tag: 1.12.1~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f67f9293ae962dc814e66ac110b4f82404d14f69;p=jquery-ui.git Controlgroup: Handle child elements that don't have options defined Closes gh-1719 --- diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index 071aef658..a4ea251a1 100644 --- a/ui/widgets/controlgroup.js +++ b/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