mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
parent
df5fe10a40
commit
f57e047877
@ -750,7 +750,7 @@ $tw.Tiddler = function(/* [fields,] fields */) {
|
|||||||
var arg = arguments[c],
|
var arg = arguments[c],
|
||||||
src = (arg instanceof $tw.Tiddler) ? arg.fields : arg;
|
src = (arg instanceof $tw.Tiddler) ? arg.fields : arg;
|
||||||
for(var t in src) {
|
for(var t in src) {
|
||||||
if(src[t] === undefined) {
|
if(src[t] === undefined || src[t] === null) {
|
||||||
if(t in this.fields) {
|
if(t in this.fields) {
|
||||||
delete this.fields[t]; // If we get a field that's undefined, delete any previous field value
|
delete this.fields[t]; // If we get a field that's undefined, delete any previous field value
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user