Hi guys. Preliminaries: I'm currently working on extending of the Udo's IncludePlugin so that it can include some tiddlers rather than all ones from a document. The plugin creates a [] of stores (TiddlyWiki() objects) and hijacks the fetchTiddler method of the main store to get tiddlers from all the stores.
My plan is to add a hasToPushWhenIncluded(tiddlerName) method to each store and change the fetchTiddler hijacking so that it checks whether a tiddler should be fetched ( if (theStore.hasToPushWhenIncluded(tiddlerName)) ... ) before doing it. However, as I'd like the hasToPushWhenIncluded method to have no other arguments, it seems convenient to add some property like "filterOfTiddlersToPush" to each store, so that the hasToPushWhenIncluded will get "filtering parameters" from it. My question is: is there any convention about adding new properties to the TiddlyWiki() object? I mean, like extensions' versions are usually stored in version.extensions.nameOfExtension (at least in many Eric's plugins), perhaps there's a convention regarding where to store additional properties. Actually, the new hasToPushWhenIncluded method already is added regardless to any conventions.. Thanks in advance, Yakov. -- 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.
