diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-09-30 15:48:30 +0200 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-10-08 14:02:58 -0400 |
commit | 754e041cbdb3e32ce708626050bdd5b82f328d35 (patch) | |
tree | d657e05405a98c427d03c14e4e1a4cdfe10661d3 /ui/widgets/controlgroup.js | |
parent | 256a449213bb4738c87d9b524257137b5c641c0e (diff) | |
download | jquery-ui-754e041cbdb3e32ce708626050bdd5b82f328d35.tar.gz jquery-ui-754e041cbdb3e32ce708626050bdd5b82f328d35.zip |
Controlgroup: Optimize and simplify data access and storage
Diffstat (limited to 'ui/widgets/controlgroup.js')
-rw-r--r-- | ui/widgets/controlgroup.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/widgets/controlgroup.js b/ui/widgets/controlgroup.js index c07202795..77559e50a 100644 --- a/ui/widgets/controlgroup.js +++ b/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 ] ); } ); |