From: Jörn Zaefferer Date: Wed, 30 Sep 2015 13:42:33 +0000 (+0200) Subject: Controlgroup: Improve comments and remove a misleading blank line X-Git-Tag: 1.12.0-beta.1~62 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=256a449213bb4738c87d9b524257137b5c641c0e;p=jquery-ui.git Controlgroup: Improve comments and remove a misleading blank line --- diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index 5974d51c9..c07202795 100644 --- a/ui/widgets/controlgroup.js +++ b/ui/widgets/controlgroup.js @@ -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 ) )