From 6e313ea1cb7abbf33eb99f745ed30d421d970d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 --- ui/widgets/controlgroup.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index 071aef658b4..a4ea251a15e 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