Skip to content

Commit 256a449

Browse files
jzaeffererarschmitz
authored andcommitted
Controlgroup: Improve comments and remove a misleading blank line
1 parent 6fc2cb3 commit 256a449

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/widgets/controlgroup.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,14 @@ return $.widget( "ui.controlgroup", {
8080
// Make sure the widget actually exists and has a selector set
8181
if ( $.fn[ widget ] && selector ) {
8282

83-
// Find instances of this widget inside controlgroup init them
83+
// Find instances of this widget inside controlgroup and init them
8484
widgets = that.element.find( selector )[ widget ]( options );
8585

8686
widgets.each( function() {
8787
var element = $( this );
8888

89-
// Store an instance of the controlgroup to be able to refrence
89+
// Store an instance of the controlgroup to be able to reference it later
9090
var widgetElement = element[ widget ]( "widget" );
91-
9291
widgetElement.data(
9392
"ui-controlgroup-data",
9493
element.data( "ui-" + widget.charAt( 0 ).toUpperCase() + widget.slice( 1 ) )

0 commit comments

Comments
 (0)