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

31
dist/autoloaderV2.js vendored
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
* ===============================================
@@ -4475,6 +4475,11 @@
//# 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 {
constructor(myFaye) {
let self = this;
@@ -4504,18 +4509,18 @@
}
replaceWithPrefix(data) {
return data.replace('allianceChat', 'this.allianceChat')
.replace('mission_participation_add', 'this.mission_participation_add')
.replace('missionDelete', 'this.missionDelete')
.replace('missionInvolved', 'this.missionInvolved')
.replace('missionMarkerAdd', 'this.missionMarkerAdd')
.replace('patientDelete', 'this.patientDelete')
.replace('patientMarkerAdd', 'this.patientMarkerAdd')
.replace('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
.replace('radioMessage', 'this.radioMessage')
.replace('vehicleDrive', 'this.vehicleDrive')
.replace('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
.replace('user_id', 'window.user_id')
return data.replaceAll('allianceChat', 'this.allianceChat')
.replaceAll('mission_participation_add', 'this.mission_participation_add')
.replaceAll('missionDelete', 'this.missionDelete')
.replaceAll('missionInvolved', 'this.missionInvolved')
.replaceAll('missionMarkerAdd', 'this.missionMarkerAdd')
.replaceAll('patientDelete', 'this.patientDelete')
.replaceAll('patientMarkerAdd', 'this.patientMarkerAdd')
.replaceAll('prisonerMarkerAdd', 'this.prisonerMarkerAdd')
.replaceAll('radioMessage', 'this.radioMessage')
.replaceAll('vehicleDrive', 'this.vehicleDrive')
.replaceAll('vehicleMarkerAdd', 'this.vehicleMarkerAdd')
.replaceAll('user_id', 'window.user_id')
}
allianceChat(data) {