Skip to content

Commit

Permalink
Controlgroup: Optimize and simplify data access and storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer authored and arschmitz committed Oct 8, 2015
1 parent 256a449 commit 754e041
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/widgets/controlgroup.js
Expand Up @@ -88,10 +88,8 @@ return $.widget( "ui.controlgroup", {

// 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 ) )
);
$.data( widgetElement[ 0 ], "ui-controlgroup-data",
element[ widget ]( "instance" ) );

childWidgets.push( widgetElement[ 0 ] );
} );
Expand Down

0 comments on commit 754e041

Please sign in to comment.