debug AutomaticDisposeFaye

This commit is contained in:
2019-02-18 10:59:14 +01:00
parent 882f1a9c23
commit b131af8f68
3 changed files with 36 additions and 26 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Feb 18 2019 10:49:44 GMT+0100 (CET)*/ /*Generated on:Mon Feb 18 2019 10:59:13 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master"; var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime(); var da_lss_adis_time = new Date().getTime();
+18 -13
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Feb 18 2019 10:49:44 GMT+0100 (CET)*/ /*Generated on:Mon Feb 18 2019 10:59:13 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -4475,6 +4475,11 @@
//# sourceMappingURL=dexie.js.map //# sourceMappingURL=dexie.js.map
// Helper Scripts
String.prototype.replaceAll = function (find, replace) {
return this.replace(new RegExp(find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), "g"), replace);
}
class AutomaticDisposeFaye { class AutomaticDisposeFaye {
constructor(myFaye) { constructor(myFaye) {
let self = this; let self = this;
@@ -4504,18 +4509,18 @@
} }
replaceWithPrefix(data) { replaceWithPrefix(data) {
return data.replace('allianceChat', 'this.allianceChat') return data.replaceAll('allianceChat', 'this.allianceChat')
.replace('mission_participation_add', 'this.mission_participation_add') .replaceAll('mission_participation_add', 'this.mission_participation_add')
.replace('missionDelete', 'this.missionDelete') .replaceAll('missionDelete', 'this.missionDelete')
.replace('missionInvolved', 'this.missionInvolved') .replaceAll('missionInvolved', 'this.missionInvolved')
.replace('missionMarkerAdd', 'this.missionMarkerAdd') .replaceAll('missionMarkerAdd', 'this.missionMarkerAdd')
.replace('patientDelete', 'this.patientDelete') .replaceAll('patientDelete', 'this.patientDelete')
.replace('patientMarkerAdd', 'this.patientMarkerAdd') .replaceAll('patientMarkerAdd', 'this.patientMarkerAdd')
.replace('prisonerMarkerAdd', 'this.prisonerMarkerAdd') .replaceAll('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
.replace('radioMessage', 'this.radioMessage') .replaceAll('radioMessage', 'this.radioMessage')
.replace('vehicleDrive', 'this.vehicleDrive') .replaceAll('vehicleDrive', 'this.vehicleDrive')
.replace('vehicleMarkerAdd', 'this.vehicleMarkerAdd') .replaceAll('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
.replace('user_id', 'window.user_id') .replaceAll('user_id', 'window.user_id')
} }
allianceChat(data) { allianceChat(data) {
+17 -12
View File
@@ -1,5 +1,10 @@
//=require ../node_modules/dexie/dist/dexie.js //=require ../node_modules/dexie/dist/dexie.js
// Helper Scripts
String.prototype.replaceAll = function (find, replace) {
return this.replace(new RegExp(find.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), "g"), replace);
}
class AutomaticDisposeFaye { class AutomaticDisposeFaye {
constructor(myFaye) { constructor(myFaye) {
let self = this; let self = this;
@@ -29,18 +34,18 @@
} }
replaceWithPrefix(data) { replaceWithPrefix(data) {
return data.replace('allianceChat', 'this.allianceChat') return data.replaceAll('allianceChat', 'this.allianceChat')
.replace('mission_participation_add', 'this.mission_participation_add') .replaceAll('mission_participation_add', 'this.mission_participation_add')
.replace('missionDelete', 'this.missionDelete') .replaceAll('missionDelete', 'this.missionDelete')
.replace('missionInvolved', 'this.missionInvolved') .replaceAll('missionInvolved', 'this.missionInvolved')
.replace('missionMarkerAdd', 'this.missionMarkerAdd') .replaceAll('missionMarkerAdd', 'this.missionMarkerAdd')
.replace('patientDelete', 'this.patientDelete') .replaceAll('patientDelete', 'this.patientDelete')
.replace('patientMarkerAdd', 'this.patientMarkerAdd') .replaceAll('patientMarkerAdd', 'this.patientMarkerAdd')
.replace('prisonerMarkerAdd', 'this.prisonerMarkerAdd') .replaceAll('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
.replace('radioMessage', 'this.radioMessage') .replaceAll('radioMessage', 'this.radioMessage')
.replace('vehicleDrive', 'this.vehicleDrive') .replaceAll('vehicleDrive', 'this.vehicleDrive')
.replace('vehicleMarkerAdd', 'this.vehicleMarkerAdd') .replaceAll('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
.replace('user_id', 'window.user_id') .replaceAll('user_id', 'window.user_id')
} }
allianceChat(data) { allianceChat(data) {