override setTimeout for testing in IE
before any reference to setTimeout, do this:
window.setTimeout = window.setTimeout;
That's going to take setTimeout function from window.prototype and put it on window object.
After that, you can override setTimeout for testing.
Written by Alex Navasardyan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ie
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#