1
0
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:
Jermolene 2014-04-30 22:48:36 +01:00
parent f82f8ae7c6
commit a6f7da6c1c

View File

@ -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;
}