Singleton manager + Revert back to old outside click handling. New system unable cope with internal clicks with ng-if
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user