mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-04-27 07:40:52 -07:00
Freeze the fields of a tiddler
Thus enforcing the immutability of tiddler objects
This commit is contained in:
parent
62bc20a181
commit
a3507bf611
1 changed files with 2 additions and 0 deletions
|
|
@ -747,6 +747,8 @@ $tw.Tiddler = function(/* [fields,] fields */) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Freeze the tiddler against modification
|
||||
Object.freeze(this.fields);
|
||||
};
|
||||
|
||||
$tw.Tiddler.prototype.hasField = function(field) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue