> Is there a way to "overload" the built-in macros without "shadowing"
> them?

Yes:
http://oldwiki.tiddlywiki.org/wiki/Dev:Hijacking

Given your example:

(function() {

var onClick = config.macros.newTiddler.onClickNewTiddler;
config.macros.newTiddler.onClickNewTiddler = function() {
    MyPreFunction();
    var result = onClick.apply(this, arguments);
    MyPostFunction();
    return result;
};

})();


-- 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.

Reply via email to