--- Marco Pivetta <[EMAIL PROTECTED]> wrote: > Hi everybody, > I've just added a window.setInterval([...something...]) to my extension's > javascript code. > I am having problems with the scope of the extension. > Every time I open a new tab the event listener "moves" from the old tab to > the new one. > This results in a chaos of intervals that get overlapped and literally EAT > the CPU load. > This because I load window.setInterval([...something...]) instead of > SOMETHING.setInterval([...something...]), where SOMETHING should be an > element related with the webpage tab. > Any ideas? How do I get the tab element? I've browsed half of the MDC wiki > without finding how to limit a setInterval to a single tab. > I've tried with many elements, but none of them seems to have the method > setInterval. > Thank you for any help
Would using nsITimer instead of setInterval() help? http://www.xulplanet.com/references/xpcomref/ifaces/nsITimer.html _______________________________________________ Project_owners mailing list [email protected] https://www.mozdev.org/mailman/listinfo/project_owners
