diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/data/Data.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/data/Data.js b/src/data/Data.js index a19476ea6..e0d1eadcd 100644 --- a/src/data/Data.js +++ b/src/data/Data.js @@ -72,13 +72,11 @@ Data.prototype = { return cache; }, get: function( owner, key ) { - var cache = this.cache( owner ); - return key === undefined ? - cache : + this.cache( owner ) : // Always use camelCase key (gh-2257) - cache[ jQuery.camelCase( key ) ]; + owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ]; }, access: function( owner, key, value ) { |