v2 up 9g0a903292kjl<f
This commit is contained in:
36
dist/autoloaderV2.js
vendored
36
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Mon Dec 17 2018 15:37:27 GMT+0100 (CET)*/
|
||||
/*Generated on:Mon Dec 17 2018 15:38:49 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -18517,24 +18517,26 @@ class AutomaticDispose {
|
||||
CollectMissions() {
|
||||
const self = this;
|
||||
|
||||
self.ADSettings().then((setting) => {
|
||||
self.ADisDB.transaction('rw', [self.ADisDB.ADisMissions, self.ADisDB.ADisAvailabelMissions], async () => {
|
||||
self.ADSettings().then((setting) => {
|
||||
return self.ADisDB.ADisMissions.toCollection()
|
||||
}).then((Missions) => {
|
||||
if (typeof Missions !== "undefined") {
|
||||
}).then((Missions) => {
|
||||
if (typeof Missions !== "undefined") {
|
||||
|
||||
return Missions.count((count) => {
|
||||
if (count > 0) {
|
||||
return Missions.each((MyMission) => {
|
||||
var MissionElement = $("#mission_" + MyMission.missionID);
|
||||
if (MissionElement.length == 0 ){
|
||||
// remove
|
||||
console.log("Remove :", MyMission)
|
||||
self.RemoveMissionsFromQueue(MyMission.missionID)
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
return Missions.count((count) => {
|
||||
if (count > 0) {
|
||||
return Missions.each((MyMission) => {
|
||||
var MissionElement = $("#mission_" + MyMission.missionID);
|
||||
if (MissionElement.length == 0) {
|
||||
// remove
|
||||
console.log("Remove :", MyMission)
|
||||
self.RemoveMissionsFromQueue(MyMission.missionID)
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user