> This is just a quick warning for all plugin authors.
> It used to be quite common practice to use a displayed tiddler's ID
> attr to get the title of the tiddler. Code like this was often used in
> a macro handler function:
> var tidEl = story.findContainingTiddler(place);
> var title = tidEl.id.substr(7);
There's also the inverse usage, where a tiddler title is used to find
a displayed tiddler element, like this:
var tidEl=document.getElementById("tiddler"+title); OR
var tidEl=document.getElementById(story.idPrefix+title);
which should be replaced with
var tidEl=story.getTiddler(title);
Note: As of a year ago (11/30/10) *all* TiddlyTools plugins are using
the correct TWCore API calls to retrieve and reference rendered
tiddler elements. Of course, lots of documents continue to use older
revisions of my plugins, so this problem may still occur when people
migrate those documents to the current TWCore without also updating
their plugins to get the latest revisions from TiddlyTools.com
-e
--
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.