remove zlist() in mesh, test structuredClone for object.clone

This commit is contained in:
Stewart Allen 2022-05-15 14:48:22 -04:00
commit 38f5399573
4 changed files with 5 additions and 23 deletions

View file

@ -218,7 +218,8 @@ String.prototype.reverse = function() {
};
Object.clone = function(o) {
return o ? JSON.parse(JSON.stringify(o)) : o;
return structuredClone(o);
// return o ? JSON.parse(JSON.stringify(o)) : o;
};
Object.toArray = function(o) {