1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Correct typo in 954a987d31

This commit is contained in:
Jeremy Ruston 2013-08-28 14:44:59 +01:00
parent 6005d7f19c
commit e8425131f4

View File

@ -160,10 +160,10 @@ TextEditor.prototype.saveChanges = function() {
if(!tiddler) {
tiddler = new $tw.Tiddler({title: this.tiddlerTitle});
}
var newValue = tiddler.getFieldString(this.fieldName);
if(text !== newValue) {
var oldValue = tiddler.getFieldString(this.fieldName);
if(text !== oldValue) {
var update = {};
update[this.fieldName] = newValue;
update[this.fieldName] = text;
this.editWidget.renderer.renderTree.wiki.addTiddler(new $tw.Tiddler(tiddler,update));
}
} else {