aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-09-30 15:48:30 +0200
committerAlexander Schmitz <arschmitz@gmail.com>2015-10-08 14:02:58 -0400
commit754e041cbdb3e32ce708626050bdd5b82f328d35 (patch)
treed657e05405a98c427d03c14e4e1a4cdfe10661d3 /ui/widgets
parent256a449213bb4738c87d9b524257137b5c641c0e (diff)
downloadjquery-ui-754e041cbdb3e32ce708626050bdd5b82f328d35.tar.gz
jquery-ui-754e041cbdb3e32ce708626050bdd5b82f328d35.zip
Controlgroup: Optimize and simplify data access and storage
Diffstat (limited to 'ui/widgets')
-rw-r--r--ui/widgets/controlgroup.js6
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 ] );
} );