Michael Mahemoff
unread,Dec 16, 2009, 6:58:01 AM12/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tiddly...@googlegroups.com
I'm not sure if this is a problem or not, but it caused some pain for
me recently. If i call store.saveTiddler(), specifying a value for the
fields map paameter, the value is assigned directly rather than being
cloned.
i.e.:
var fields = { hot: true };
var tid = store.saveTiddler(......., fields, ......);
tid.hot = false; // now fields.hot is false too
This bit me when I passed in config.defaultCustomFields; it turned out
TiddlyWebAdaptor was setting "server.title" on each tiddler, and this
was magically appearing on config.defaultCustomFields (where it would
be applied to subsequent tiddlers).
I am thinking it would be nice if the fields argument was cloned by
store.saveTiddler(). Interested in others' thoughts on that.