This is my object:
################################################## #
function msgList() {
this.t = 5000;
this.timer = timer;
}
// ---------------------------------------
// ::: Methods for msgList
// ---------------------------------------
function timer() {
alert(this.t);
setTimeout('this.timer();', this.t);
}
var lst = new msgList;
lst.timer();
##################################################
5000 is shown when the first time, then this.t become undefine.
I thing the meaning of "this" is not the same one at the first calling,
any one can explain this to me??
actually, I wanna to show the time const which is attribute of the
object at the function.
How can I do this?
Thing you.