sorry, FND - it didn't even occur to me that this was a Dev issue. I'll post there if I have questions about making plugins in the future (even little ones like this :-).
thanks, Dave On Mar 16, 2:55 am, FND <[email protected]> wrote: > N.B.: > Strictly development-related issues should be discussed on the dev group: > http://groups.google.com/group/TiddlyWikiDev/ > > > config.macros.foo.handler = function[...] > > I couldn't get it to work right, so I changed it > > Presumably, the reason this results in an error is that the "foo" macro > object (i.e. config.macros.foo) doesn't exist yet, so attempting to > attach anything to that will throw an exception. > One way around that would be to initialize the macro object: > config.macros.foo = {}; > config.macros.foo.handler = function[...] > Your alternative approach seems fine. In fact, it's what we're using in > the plugin templates: > http://svn.tiddlywiki.org/Trunk/association/plugins/SamplePlugin.js > http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/template.js > > > I know you're supposed to be able to edit that site, but I'm not > > certain > > That page is badly in need of an overhaul, so feel free to edit away. > > -- F. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

