]> source.dussan.org Git - jquery-ui.git/commitdiff
Controlgroup: Handle child elements that don't have options defined
authorScott González <scott.gonzalez@gmail.com>
Mon, 11 Jul 2016 15:32:39 +0000 (11:32 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 13 Jul 2016 16:10:41 +0000 (12:10 -0400)
Closes gh-1719

ui/widgets/controlgroup.js

index 071aef658b48c14f4190699dfa8b9aad83366581..a4ea251a15e8886b68f28100f92390c2ed132470 100644 (file)
@@ -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