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/manipulation/domManip.js | |
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/manipulation/domManip.js')
-rw-r--r-- | src/manipulation/domManip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation/domManip.js b/src/manipulation/domManip.js index 39c146c89..ef7b9a733 100644 --- a/src/manipulation/domManip.js +++ b/src/manipulation/domManip.js @@ -82,7 +82,7 @@ export function domManip( collection, args, callback, ignored ) { for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && + !dataPriv.get( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { |