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;
22
33jQuery . data = function ( elem , name , value ) {
44 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
77 if ( name && typeof name === "object" && arguments . length === 2 ) {
88 for ( var key in name ) {
9- if ( key !== jQuery . camelCase ( key ) ) {
9+ if ( key !== jQuery . camelCase ( key ) ) {
1010 migrateWarn ( "jQuery.data() always sets/gets camelCased names: " + key ) ;
1111 }
1212 }
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.
1515 return oldData . apply ( this , arguments ) ;
1616 }
1717
You can’t perform that action at this time.
0 commit comments