[twdev] Re: TiddlyWiki - corrected test code

2009-12-16 Thread Tobias Beer
Ah, there you go... done it already... :o) On 15 Dez., 17:06, s...@tiddlywiki.org wrote: > http://trac.tiddlywiki.org/changeset/11342 > > MartinBudden > 2009-12-15 08:06:33 -0800 (Tue, 15 Dec 2009) > 32 > TiddlyWiki - corrected test code > > --- > > U   Trunk/core/test/js/Strings.js

[twdev] Re: TiddlyWiki - added test for trim()

2009-12-16 Thread Tobias Beer
Shouldn't... > + expected = "abcdef"; rather be... > + expected = "abc def"; ? I thought "trim" functions were generally used to trim "spaces" on either side of a string, but not in the middle... or am I mistaken? On 15 Dez., 14:10, s...@tiddlywiki.org wrote: > h

[twdev] "fields" param in store.saveTiddler() is mutable

2009-12-16 Thread Michael Mahemoff
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,