> I'd like to change config.options.chkTopOfPageMode from true to false
> when the tiddler closes.

You'd probably wanna hijack* the closeTiddler command handler:
---------------
(function() {
var original = config.commands.closeTiddler.handler;
config.commands.closeTiddler.handler = function(event, src, title) {
     config.options.chkTopOfPageMode = !config.options.chkTopOfPageMode;
     return original.apply(this, arguments);
};
})();
---------------

HTH.


-- F.


* see the community wiki:
http://tiddlywiki.org/wiki/Dev:Best_Practices#Extending_Core_Functionality
http://tiddlywiki.org/wiki/Dev:Hijacking

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