this.animation_0 = function(var1,var2){ { do_something... var this_parent = this; if(!animacja_zakonczona) setTimeout(function(this_parent){alert(this_parent);this_parent.animation_0var1,var2)},timeout); }
w miejscu


alert(this_parent) zwraca undefined... ;(