mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Don't queue change events for deleting non-existent tiddlers
Fixes #1919
This commit is contained in:
parent
684fbb1ee8
commit
709126dd64
10
boot/boot.js
10
boot/boot.js
@ -885,10 +885,12 @@ $tw.Wiki = function(options) {
|
|||||||
this.deleteTiddler = function(title) {
|
this.deleteTiddler = function(title) {
|
||||||
// Uncomment the following line for detailed logs of all tiddler deletions
|
// Uncomment the following line for detailed logs of all tiddler deletions
|
||||||
// console.log("Deleting",title,tiddler)
|
// console.log("Deleting",title,tiddler)
|
||||||
delete tiddlers[title];
|
if($tw.utils.hop(tiddler,title)) {
|
||||||
this.clearCache(title);
|
delete tiddlers[title];
|
||||||
this.clearGlobalCache();
|
this.clearCache(title);
|
||||||
this.enqueueTiddlerEvent(title,true);
|
this.clearGlobalCache();
|
||||||
|
this.enqueueTiddlerEvent(title,true);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get a tiddler from the store
|
// Get a tiddler from the store
|
||||||
|
Loading…
Reference in New Issue
Block a user