Hallo,
warum bekomme ich bei folgendem Programm die Fehlermeldung: TypeError: this.func is not a function ?
Danke im Vorraus.
warum bekomme ich bei folgendem Programm die Fehlermeldung: TypeError: this.func is not a function ?
Javascript:
function Test() {
this.init = function() {
var interval = setInterval(this.update, 100);
}
this.func = function() {
console.log("Test");
}
this.update = function() {
this.func();
}
}
var t = new Test();
t.init();
Danke im Vorraus.