Skip to content

Commit 754e041

Browse files
jzaeffererarschmitz
authored andcommitted
Controlgroup: Optimize and simplify data access and storage
1 parent 256a449 commit 754e041

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/widgets/controlgroup.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ return $.widget( "ui.controlgroup", {
8888

8989
// Store an instance of the controlgroup to be able to reference it later
9090
var widgetElement = element[ widget ]( "widget" );
91-
widgetElement.data(
92-
"ui-controlgroup-data",
93-
element.data( "ui-" + widget.charAt( 0 ).toUpperCase() + widget.slice( 1 ) )
94-
);
91+
$.data( widgetElement[ 0 ], "ui-controlgroup-data",
92+
element[ widget ]( "instance" ) );
9593

9694
childWidgets.push( widgetElement[ 0 ] );
9795
} );

0 commit comments

Comments
 (0)