Fix issues with tiddlers with null fields

Fixing #567
print-window-tiddler
Jermolene 2014-04-17 14:43:12 +01:00
rodzic df5fe10a40
commit f57e047877
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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
}