@ampify/aquery
Advanced tools
Comparing version 2.0.4 to 2.0.5
{ | ||
"name": "@ampify/aquery", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"main": "./dist/aquery.js", | ||
@@ -5,0 +5,0 @@ "module": "./src", |
@@ -761,11 +761,12 @@ import jQuery from 'jquery'; | ||
aQuery.keepElements = (elements) => { | ||
if (elements instanceof Array) { | ||
elements.forEach(element => { | ||
aQuery.keepElements(element); | ||
}); | ||
} else { | ||
keepElement(elements); | ||
} | ||
aQuery.keepElements = (...args) => { | ||
args.forEach(elements =>{ | ||
if (elements instanceof Array) { | ||
aQuery.keepElements(elements); | ||
} else { | ||
keepElement(elements); | ||
} | ||
}); | ||
}; | ||
const keepElement = (element) => { | ||
@@ -772,0 +773,0 @@ if (element instanceof jQuery) { |
48959