1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-03 17:26:56 +00:00

Extraneous var

This commit is contained in:
Jeremy Ruston 2012-06-19 16:56:40 +01:00
parent 14f4465b30
commit 2282a825ec

View File

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