Skip to content
Snippets Groups Projects
Commit 9a34492d authored by Arkerthan's avatar Arkerthan
Browse files

add missing deepAssign()

parent d1cf2cdb
Branches
Tags
No related merge requests found
......@@ -254,9 +254,7 @@ App.Arcology.Building = class {
// `JSON.reviveWrapper()` call will trigger out of control recursion in
// the serializer, so we must pass it a clone of our own data instead.
const ownData = {};
Object.keys(this).forEach(function(pn) {
ownData[pn] = clone(this[pn]);
}, this);
deepAssign(ownData, this);
return JSON.reviveWrapper('(new App.Arcology.Building())._init($ReviveData$)', ownData);
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment