Can not apply two time in two different application ( js )

i have two application , one of theme is impersonate , and my application is like that .
when i enable impersonate , my code below does not work :
var tr2 = oldAdd2.apply( this,arguments);
exactly like this code has been worked in impersonate before , when i disable impersonate everything works great ,
and i dont have jquery conflict

Can we see a bit more of the code, like the function around it and what this points to ?