1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Add debugging hook for wiki.addTiddler()

This commit is contained in:
Jermolene 2015-02-10 11:30:36 +00:00
parent cf36f6d090
commit 4b61cae262

View File

@ -861,6 +861,8 @@ $tw.Wiki = function(options) {
if(tiddler) { if(tiddler) {
var title = tiddler.fields.title; var title = tiddler.fields.title;
if(title) { if(title) {
// Uncomment the following line for detailed logs of all tiddler writes
// console.log("Adding",title,tiddler)
tiddlers[title] = tiddler; tiddlers[title] = tiddler;
this.clearCache(title); this.clearCache(title);
this.clearGlobalCache(); this.clearGlobalCache();