dom: get: always return a new array to prevent unwanter mutations

This commit is contained in:
jean-emmanuel 2019-04-03 13:16:03 +02:00
parent 53a488ee5c
commit d1b1d11237

View file

@ -63,7 +63,7 @@ module.exports = {
if (!nodes) nodes = context.querySelectorAll(selector)
return nodes.forEach ? nodes : [...nodes]
return [...nodes]
},