File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ jQuery.fn.extend({
112
112
}
113
113
114
114
return access ( this , function ( value ) {
115
- var data ,
116
- camelKey = jQuery . camelCase ( key ) ;
115
+ var data , camelKey ;
117
116
118
117
// The calling jQuery object (element matches) is not empty
119
118
// (and therefore has an element appears at this[ 0 ]) and the
@@ -128,6 +127,7 @@ jQuery.fn.extend({
128
127
return data ;
129
128
}
130
129
130
+ camelKey = jQuery . camelCase ( key ) ;
131
131
// Attempt to get data from the cache
132
132
// with the key camelized
133
133
data = dataUser . get ( elem , camelKey ) ;
@@ -147,6 +147,7 @@ jQuery.fn.extend({
147
147
}
148
148
149
149
// Set the data...
150
+ camelKey = jQuery . camelCase ( key ) ;
150
151
this . each ( function ( ) {
151
152
// First, attempt to store a copy or reference of any
152
153
// data that might've been store with a camelCased key.
You can’t perform that action at this time.
0 commit comments