This project is read-only.

Global namespace in script (like for setTimeOut)

Oct 20, 2011 at 9:20 AM
Edited Oct 20, 2011 at 9:35 AM

I need to register a global method like setTimeout or clearTimeout.

I've tried an empty string but it didn't work:

context.SetParameter("", new Something()); 

Of course setTimeout should be a member of window. So, do browsers actually pre-process scripts before the scripts go into the javascript engine? adding "window." before all occurances of "setTimeout" for example?