aboutsummaryrefslogtreecommitdiffstats
path: root/src/data
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2024-01-22 22:13:23 -0500
committerGitHub <noreply@github.com>2024-01-22 22:13:23 -0500
commit805cdb43fd02c3a5783c06b5ec2c9519be0682ab (patch)
treee5a914f0b1ddf5cd18e37d3310b1afe438bdd31a /src/data
parentaf79c99939628255f46f30bced000eba9aa6711f (diff)
downloadjquery-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.js2
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 ?