mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-24 07:56:52 +00:00
Merge pull request #1565 from felixhayashi/patch-5
Bugfix: Object.freeze() called on null
This commit is contained in:
commit
2710049865
@ -793,7 +793,7 @@ $tw.Tiddler = function(/* [fields,] fields */) {
|
|||||||
value = src[t];
|
value = src[t];
|
||||||
}
|
}
|
||||||
// Freeze the field to keep it immutable
|
// Freeze the field to keep it immutable
|
||||||
if(typeof value === "object") {
|
if(value != null && typeof value === "object") {
|
||||||
Object.freeze(value);
|
Object.freeze(value);
|
||||||
}
|
}
|
||||||
this.fields[t] = value;
|
this.fields[t] = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user