diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-10-08 22:41:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 22:41:59 +0200 |
commit | 4504fc3d722dd029d861cb47aa65a5edc651c4d3 (patch) | |
tree | aac9d6759f131c7e826573d4e02ef528e9dfcfde /src/manipulation.js | |
parent | e0022f23144fd1dc6db86a5d8c18af47bc14f0f3 (diff) | |
download | jquery-4504fc3d722dd029d861cb47aa65a5edc651c4d3.tar.gz jquery-4504fc3d722dd029d861cb47aa65a5edc651c4d3.zip |
Manipulation:Selector: Use the nodeName util where possible to save size
Saves 20 bytes.
Closes gh-4504
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 11bd5b079..803a67bd6 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -229,7 +229,7 @@ jQuery.extend( { // Support: IE <=11+ // IE fails to set the defaultValue to the correct value when // cloning textareas. - if ( destElements[ i ].nodeName.toLowerCase() === "textarea" ) { + if ( nodeName( destElements[ i ], "textarea" ) ) { destElements[ i ].defaultValue = srcElements[ i ].defaultValue; } } |