aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/controlgroup.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-30 15:42:33 +0200
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:02:58 -0400
commit256a449213bb4738c87d9b524257137b5c641c0e (patch)
treeefb6c2e19058cac9976f5b1cba659f12fed8cd33 /ui/widgets/controlgroup.js
parent6fc2cb3c7c8459c82accc05b2b41d5a909eacec5 (diff)
downloadjquery-ui-256a449213bb4738c87d9b524257137b5c641c0e.tar.gz
jquery-ui-256a449213bb4738c87d9b524257137b5c641c0e.zip
Controlgroup: Improve comments and remove a misleading blank line
Diffstat (limited to 'ui/widgets/controlgroup.js')
-rw-r--r--ui/widgets/controlgroup.js5
1 files changed, 2 insertions, 3 deletions
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 ) )