mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +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;
|
||||
if($tw.utils.count(changes) > 0) {
|
||||
self.dispatchEvent("change",changes);
|
||||
}
|
||||
});
|
||||
this.eventsTriggered = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user