mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Suppress refresh cycle if no tiddlers have changed
This commit is contained in:
parent
f82f8ae7c6
commit
a6f7da6c1c
@ -140,7 +140,9 @@ exports.enqueueTiddlerEvent = function(title,isDeleted) {
|
||||
var changes = self.changedTiddlers;
|
||||
self.changedTiddlers = Object.create(null);
|
||||
self.eventsTriggered = false;
|
||||
self.dispatchEvent("change",changes);
|
||||
if($tw.utils.count(changes) > 0) {
|
||||
self.dispatchEvent("change",changes);
|
||||
}
|
||||
});
|
||||
this.eventsTriggered = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user