I have a javascript class that would like to have its own setInterval feature. To do this, I would like the method invoked by the window to understand which object instance it is. Ideally, I could pas the this down but it looks like IE only allows:
window.setInterval("code", 100);
and not
window.setInterval(MyClass.myFunc, 100, this);
Is there any technique for the setTimeout/Interval handlers to understand which object instance?
Thanks in advance
Doug
window.setInterval("code", 100);
and not
window.setInterval(MyClass.myFunc, 100, this);
Is there any technique for the setTimeout/Interval handlers to understand which object instance?
Thanks in advance
Doug