[tw] Re: Hijacking saveTiddler

2011-12-15 Thread skye riquelme
...thanks even more so for the advice...obviously Ill play around with a simple non-importante test TW first!!! and thanks for the warning/advice Skye On 15 dez, 12:36, rakugo wrote: > I should also say take care when hijacking where you don't completely > know what you are doing. If you do it

[tw] Re: Hijacking saveTiddler

2011-12-15 Thread rakugo
I should also say take care when hijacking where you don't completely know what you are doing. If you do it wrong you could break the function. In this situation that means it would be impossible to save any tiddlers... so take backups :) On Dec 15, 1:47 am, skye riquelme wrote: > Ooopa..now

[tw] Re: Hijacking saveTiddler

2011-12-14 Thread skye riquelme
Ooopa..now thats exactly what I wanted to know. now to work to see if I can get it woring as I want. Thanks Skye On 14 dez, 08:18, rakugo wrote: > Hijack does seem to be the right word. The idea with hijacking is > > // cache the old value of the function > var _cache = TiddlyWiki.prot

[tw] Re: Hijacking saveTiddler

2011-12-14 Thread rakugo
Hijack does seem to be the right word. The idea with hijacking is // cache the old value of the function var _cache = TiddlyWiki.prototype.saveTiddler; // override the existing value TiddlyWiki.prototype.saveTiddler = function(title,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,c