mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Controlgroup: Optimize and simplify data access and storage
This commit is contained in:
parent
256a449213
commit
754e041cbd
@ -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 ] );
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user