Commit 8fed1e7b authored by Rick Waldron's avatar Rick Waldron

Do plain property check first, fallback to camelCase only if nec. Fixes #9794

parent 84d066ff
...@@ -114,14 +114,14 @@ jQuery.extend({ ...@@ -114,14 +114,14 @@ jQuery.extend({
// If a data property was specified // If a data property was specified
if ( getByName ) { if ( getByName ) {
// First try to find the camelCased property // First Try to find as-is property data
ret = thisCache[ jQuery.camelCase( name ) ]; ret = thisCache[ name ];
// Test for null|undefined property data was found // Test for null|undefined property data
if ( ret == null ) { if ( ret == null ) {
// Try to find as-is property data // Try to find the camelCased property
ret = thisCache[ name ]; ret = thisCache[ jQuery.camelCase( name ) ];
} }
} else { } else {
ret = thisCache; ret = thisCache;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment