Freeze the fields of a tiddler

Thus enforcing the immutability of tiddler objects
print-window-tiddler
Jermolene 2014-03-12 08:33:13 +00:00
rodzic 62bc20a181
commit a3507bf611
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -747,6 +747,8 @@ $tw.Tiddler = function(/* [fields,] fields */) {
}
}
}
// Freeze the tiddler against modification
Object.freeze(this.fields);
};
$tw.Tiddler.prototype.hasField = function(field) {