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 2265e8392b
commit 243e158e12

View file

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