Fixed bug in copying #428

This commit is contained in:
Henry
2015-12-17 13:44:39 -08:00
parent f55168d1ac
commit 6302e45c10
2 changed files with 20 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ define(
if (Array.isArray(obj)) {
obj.forEach(function (value, index) {
obj[index] = idMap[value] || value;
this.rewriteIdentifiers(obj[index]);
this.rewriteIdentifiers(obj[index], idMap);
}, this);
} else if (obj && typeof obj === 'object') {
Object.keys(obj).forEach(function (key) {