remove zlist() in mesh, test structuredClone for object.clone
This commit is contained in:
parent
b34cad3523
commit
38f5399573
4 changed files with 5 additions and 23 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue