http://trac.tiddlywiki.org/changeset/11818
FND
2010-03-10 06:41:40 -0800 (Wed, 10 Mar 2010)
175
ensured tiddler fields are passed by value in saveTiddler
This is to ensure that subsequent changes to the respective tiddler do
not modify the original object.
ticket #1205
---------------
U Trunk/core/js/TiddlyWiki.js
---------------
Modified: Trunk/core/js/TiddlyWiki.js
===================================================================
--- Trunk/core/js/TiddlyWiki.js 2010-03-10 14:18:43 UTC (rev 11817)
+++ Trunk/core/js/TiddlyWiki.js 2010-03-10 14:41:40 UTC (rev 11818)
@@ -327,6 +327,7 @@
created = created || modified;
tiddler = new Tiddler();
}
+ fields = merge({},fields);
tiddler.set(newTitle,newBody,modifier,modified,tags,created,fields,creator);
this.addTiddler(tiddler);
if(clearChangeCount)
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.