dom: get: always return a new array to prevent unwanter mutations
This commit is contained in:
parent
53a488ee5c
commit
d1b1d11237
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ module.exports = {
|
|||
|
||||
if (!nodes) nodes = context.querySelectorAll(selector)
|
||||
|
||||
return nodes.forEach ? nodes : [...nodes]
|
||||
return [...nodes]
|
||||
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue