new $tw.Tiddler() creates a new object - a new place for you data.
$tw.wiki.addTiddler(tiddler) adds the tiddler into the store - this is like 
a central address book containing references to all the tiddlers

On Thursday, April 3, 2014 1:53:17 PM UTC+2, Danielo Rodríguez wrote:
>
> Thank you BJ,
>
> Then, what is the difference between using $tw.wiki.addTiddler(tiddler) 
> and new $tw.Tiddler() ?
> Could you explain me the syntax?
>
> El jueves, 3 de abril de 2014 10:15:14 UTC+2, BJ escribió:
>>
>>
>> HI Danielo,
>> with the tw5 code, the Tiddler object  is like a house that the actual 
>> 'tiddler' ocupies. the actual 'tiddler' is known by it name, stored in 
>> title field. When the 'tiddler' changes in some way it need to change its 
>> house. the call to  new $tw.Tiddler() get a new house for the tiddler. The 
>> actual 'tiddler' itself is the data inside the old Tiddler object that must 
>> be copied (and changed) and put in the new Tiddler object. Hope that helps!
>>
>> cheer
>>
>> Jeff
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to