Fix issues with tiddlers with null fields

Fixing #567
This commit is contained in:
Jermolene 2014-04-17 14:43:12 +01:00
parent df5fe10a40
commit f57e047877
1 changed files with 1 additions and 1 deletions

View File

@ -750,7 +750,7 @@ $tw.Tiddler = function(/* [fields,] fields */) {
var arg = arguments[c],
src = (arg instanceof $tw.Tiddler) ? arg.fields : arg;
for(var t in src) {
if(src[t] === undefined) {
if(src[t] === undefined || src[t] === null) {
if(t in this.fields) {
delete this.fields[t]; // If we get a field that's undefined, delete any previous field value
}