Skip to content
Permalink
Browse files

Controlgroup: Improve comments and remove a misleading blank line

  • Loading branch information...
jzaefferer authored and arschmitz committed Sep 30, 2015
1 parent 6fc2cb3 commit 256a449213bb4738c87d9b524257137b5c641c0e
Showing with 2 additions and 3 deletions.
  1. +2 −3 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 ) )

0 comments on commit 256a449

Please sign in to comment.
You can’t perform that action at this time.