mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-03 17:26:56 +00:00
Extraneous var
This commit is contained in:
parent
14f4465b30
commit
2282a825ec
@ -52,7 +52,7 @@ exports.setTextReference = function(textRef,value,currTiddlerTitle,isShadow) {
|
||||
title = tr.title || currTiddlerTitle;
|
||||
tiddler = this.getTiddler(title);
|
||||
if(tiddler) {
|
||||
var fields = {};
|
||||
fields = {};
|
||||
fields[tr.field] = value;
|
||||
this.addTiddler(new $tw.Tiddler(tiddler,fields));
|
||||
}
|
||||
@ -70,7 +70,7 @@ exports.deleteTextReference = function(textRef,currTiddlerTitle) {
|
||||
title = tr.title || currTiddlerTitle;
|
||||
tiddler = this.getTiddler(title);
|
||||
if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) {
|
||||
var fields = {};
|
||||
fields = {};
|
||||
fields[tr.field] = undefined;
|
||||
this.addTiddler(new $tw.Tiddler(tiddler,fields));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user