fix legacy slice/top conversion

This commit is contained in:
Stewart Allen 2025-02-26 19:03:24 -05:00
commit 5403fd8a07
2 changed files with 2 additions and 6 deletions

View file

@ -91,11 +91,7 @@ AP.addOnce = function(val) {
* shallow cloning with clone(arg) call on each new element
*/
AP.clone = function() {
let na = this.slice(),
ln = na.length,
i = 0;
while (i < ln) na[i] = na[i++].clone(...arguments);
return na;
return this.map(v => v.clone(...arguments));
};
AP.xray = function(arg) {