1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00

Fixed bug in extendDeepCopy()

This commit is contained in:
Jeremy Ruston 2012-05-05 11:21:15 +01:00
parent ab4bdc0337
commit 575f49fd45

View File

@ -35,8 +35,8 @@ exports.deepCopy = function(object) {
exports.extendDeepCopy = function(object,extendedProperties) {
var result = $tw.utils.deepCopy(object),t;
for(t in extendedProperties) {
if(object[t] !== undefined) {
result[t] = $tw.utils.deepCopy(object[t]);
if(extendedProperties[t] !== undefined) {
result[t] = $tw.utils.deepCopy(extendedProperties[t]);
}
}
return result;