]> source.dussan.org Git - jquery-ui.git/commitdiff
Controlgroup: Improve comments and remove a misleading blank line
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 30 Sep 2015 13:42:33 +0000 (15:42 +0200)
committerAlexander Schmitz <arschmitz@gmail.com>
Thu, 8 Oct 2015 18:02:58 +0000 (14:02 -0400)
ui/widgets/controlgroup.js

index 5974d51c9bde360ba55ca62f4f8deceeb09459f1..c0720279560e8df88acd1a452f5fd5b8655ea177 100644 (file)
@@ -80,15 +80,14 @@ return $.widget( "ui.controlgroup", {
                        // Make sure the widget actually exists and has a selector set
                        if ( $.fn[ widget ] && selector ) {
 
-                               // Find instances of this widget inside controlgroup init them
+                               // Find instances of this widget inside controlgroup and init them
                                widgets = that.element.find( selector )[ widget ]( options );
 
                                widgets.each( function() {
                                        var element = $( this );
 
-                                       // Store an instance of the controlgroup to be able to refrence
+                                       // Store an instance of the controlgroup to be able to reference it later
                                        var widgetElement = element[ widget ]( "widget" );
-
                                        widgetElement.data(
                                                "ui-controlgroup-data",
                                                element.data( "ui-" + widget.charAt( 0 ).toUpperCase() + widget.slice( 1 ) )