debug proxy

This commit is contained in:
2019-02-18 10:27:40 +01:00
parent da77f7fd32
commit cc90b51a9b
3 changed files with 30 additions and 10 deletions

View File

@@ -16,9 +16,6 @@
runner_iframes: ['adis-krankentransporte-frame', 'adis-ownmissions-frame', /*'adis-plannedevents-frame',*/ 'adis-verbandmission-frame', 'adis-verbandmission-event-frame']
}
}
__noSuchMethod__(method, args) {
console.log(method, args);
}
constructor() {
let self = this;
@@ -174,6 +171,20 @@
}
});
return new Proxy(this, {
get: function (target, property) {
if (property in target) {
return target[property];
}
return function () {
var args = [].slice.call(arguments, 0);
return function (object, property, args) {
console.log("noSuchMethod", object, property, args);
}(object, property, args)
};
}
});
}
includesString(string1, string2) {
@@ -2481,7 +2492,6 @@
}
}
$(document).ready(function () {
var $div = $("a.missing_vehicles_load:contains('Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden!')");
var isHidden = $div.is(':hidden');