diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2024-01-22 22:13:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 22:13:23 -0500 |
commit | 805cdb43fd02c3a5783c06b5ec2c9519be0682ab (patch) | |
tree | e5a914f0b1ddf5cd18e37d3310b1afe438bdd31a /src/data | |
parent | af79c99939628255f46f30bced000eba9aa6711f (diff) | |
download | jquery-805cdb43fd02c3a5783c06b5ec2c9519be0682ab.tar.gz jquery-805cdb43fd02c3a5783c06b5ec2c9519be0682ab.zip |
Data: Refactor to reduce size
* Return the new value from `set(owner, key, value)`.
* Use `set(owner, key, value)` rather than `access(owner, key, value)`.
Close gh-5392
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/Data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/Data.js b/src/data/Data.js index 2a3ccbd14..25c8c64aa 100644 --- a/src/data/Data.js +++ b/src/data/Data.js @@ -61,7 +61,7 @@ Data.prototype = { cache[ camelCase( prop ) ] = data[ prop ]; } } - return cache; + return value; }, get: function( owner, key ) { return key === undefined ? |