From f67f9293ae962dc814e66ac110b4f82404d14f69 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 11 Jul 2016 11:32:39 -0400 Subject: Controlgroup: Handle child elements that don't have options defined Closes gh-1719 --- ui/widgets/controlgroup.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') 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 -- cgit v1.2.3