> To be used as a macro a jQuery object function needs to be prefixed > with "tw_"
So a macro like <<foo>> would call jQuery.fn.tw_foo, meaning that method could also be used like $(el).tw_foo(params)? Does this mean the previous proposal of using an actual sub-namespace (jQuery.tw) has been abandoned - probably due to the complexity of extending it to behave like the jQuery namespace? > Arguments to macros are passed as named values I understand macro parameters are passed in as args.<name|number>, and what previously was place is now this (or this[0]). From previous conversations, I assume the tiddler, wikifier and macroName arguments now reside in args.tw? As mentioned before, I'm not very happy with that hierarchy, putting macro parameters at the root level and delegating the remaining arguments to a member object. I'd much prefer all arguments to be direct descendants of args - meaning parameters should be passed as args.params, alongside args.tiddler, args.wikifier and args.macro. That seems more consistent and doesn't require special handling (in the current scenario, "tw" could never be used as named parameter). -- F. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
