If you are afraid of queueing up all of that stuff and having it
continue after cancelling...

-------------------------

var m_rendererThreadRef = null;

function queueNextThingy( thingy, timeout )
{
   m_rendererThreadRef = setTimeout(function() {
      handleThingy( thingy );
      queueNextThingy( thingy.nextThingy, timeout );
   }, timeout );
}

function cancelQueue()
{
   if( m_rendererThreadRef != null )
      clearTimeout(m_rendererThreadRef);
   m_rendererThreadRef = null;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to