ovo je klasican problem sa this... ovo mozes da resis sa closure-om:
Kôd:
function funkcija2(){
var self = this;
var closure = function(){ self.funkcija1(); };
this.timer = window.setTimeout(closure, 10);
}
__________________
Leadership is the art of getting people to want to do what you know must be done.
Poslednja izmena od ivanhoe : 09. 11. 2007. u 01:08.
|