From f67f9293ae962dc814e66ac110b4f82404d14f69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 11 Jul 2016 11:32:39 -0400 Subject: [PATCH] Controlgroup: Handle child elements that don't have options defined Closes gh-1719 --- ui/widgets/controlgroup.js | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5