Skip to content
Permalink
Browse files

Controlgroup: Optimize and simplify data access and storage

  • Loading branch information...
jzaefferer authored and arschmitz committed Sep 30, 2015
1 parent 256a449 commit 754e041cbdb3e32ce708626050bdd5b82f328d35
Showing with 2 additions and 4 deletions.
  1. +2 −4 ui/widgets/controlgroup.js
@@ -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 ] );
} );

0 comments on commit 754e041

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