File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ var oldData = jQuery.data;
2
2
3
3
jQuery . data = function ( elem , name , value ) {
4
4
var curData ;
5
-
6
- //name can be an object, and each entry in the object is meant to be set as data
5
+
6
+ //Name can be an object, and each entry in the object is meant to be set as data
7
7
if ( name && typeof name === "object" && arguments . length === 2 ) {
8
8
for ( var key in name ) {
9
- if ( key !== jQuery . camelCase ( key ) ) {
9
+ if ( key !== jQuery . camelCase ( key ) ) {
10
10
migrateWarn ( "jQuery.data() always sets/gets camelCased names: " + key ) ;
11
11
}
12
12
}
13
-
14
- //jQuery.data will convert keys to camelCase, and this is a setter.
13
+
14
+ //Original jQuery.data will convert keys to camelCase, and this is a setter.
15
15
return oldData . apply ( this , arguments ) ;
16
16
}
17
17
You can’t perform that action at this time.
0 commit comments