Singleton manager + Revert back to old outside click handling. New system unable cope with internal clicks with ng-if

This commit is contained in:
Mo Bitar
2017-12-26 15:09:02 -06:00
parent fc4abbbaf6
commit b124332619
9 changed files with 156 additions and 105 deletions

View File

@@ -62,6 +62,8 @@ class SyncManager {
}
}
this.$rootScope.$broadcast("sync:completed", {});
if(callback) {
callback({success: true});
}
@@ -319,10 +321,10 @@ class SyncManager {
this.$rootScope.$broadcast("major-data-change");
}
this.allRetreivedItems = [];
this.callQueuedCallbacksAndCurrent(callback, response);
this.$rootScope.$broadcast("sync:completed");
this.$rootScope.$broadcast("sync:completed", {retrievedItems: this.allRetreivedItems});
this.allRetreivedItems = [];
}
}.bind(this);