W3C home > Mailing lists > Public > www-svg@w3.org > March 2004

RE:RE:SVGTimer complaints

From: Jan-Klaas Kollhof <keyjaque@yahoo.com>
Date: Sun, 7 Mar 2004 12:50:48 -0800 (PST)
Message-ID: <20040307205048.41584.qmail@web60106.mail.yahoo.com>
To: www-svg@w3.org

>Hmm, one problem with this approach is that adding
the >event listener after
>the createAndStart is a bit of a pain.

I agree.


> window.dispatchEventDelayed(myEvt, 500);

= 

createAndStartTimer(500).addEventListener({handleEvent:function(evt){
  document.dispatchEvent(evt);
   //or window or whatever you like
})

or just have the timer by default dispatch the event
to the window or document obj

window.addEventListener(l);
createAndStartTimer(500);


Jan




__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
Received on Sunday, 7 March 2004 15:51:19 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:26 GMT