1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00

Debug hooks for tracing tiddler deletions

This commit is contained in:
Jermolene 2015-05-13 18:31:28 +01:00
parent f899f33a4a
commit 81e4d43a25

View File

@ -883,6 +883,8 @@ $tw.Wiki = function(options) {
// Delete a tiddler
this.deleteTiddler = function(title) {
// Uncomment the following line for detailed logs of all tiddler deletions
// console.log("Deleting",title,tiddler)
delete tiddlers[title];
this.clearCache(title);
this.clearGlobalCache();