> It's something I begrudgingly accepted when writing the code as there was no
> easy way to find the viewer div, so it looks for a direct child of the
> tiddler div.

Try this:

function getViewer(place) {
   var here=story.findContainingTiddler(place);
   if (!here) return null;
   var divs=here.getElementsByTagName('div');
   for (var i=0; i<divs.length && !hasClass(divs[i],'viewer'); i++);
   return divs[i];
}

enjoy,
-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to