Adam Shaw 8 лет назад
Родитель
Сommit
a25b1b12a3
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/EventManager.js

+ 1 - 2
src/EventManager.js

@@ -70,6 +70,7 @@ function EventManager() { // assumed to be a calendar
 
 
 	function reportEventChange() {
+		debugEventDefCollection();
 		t.trigger('eventsReset', cache);
 	}
 
@@ -143,12 +144,10 @@ function EventManager() { // assumed to be a calendar
 
 		if (pendingSourceCnt) {
 			return Promise.construct(function(resolve) {
-				debugEventDefCollection();
 				t.one('eventsReceived', resolve);
 			});
 		}
 		else { // executed all synchronously, or no sources at all
-			debugEventDefCollection();
 			return Promise.resolve(cache);
 		}
 	}