Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Any news on

// EDIT: title of this post was 'Any news on "clearInterval()" bug' or something — <3 Q&A

I'm sorry that I don't even bother to reply to one of the few earlier posts regarding this subject, but the design of this "Q&A" section would effectively hide my response anyways. So I'll just open a new question.

Are there any news on the apparently broken "clearTimeout()" function yet? Or have I missed something?

// @ Titanium:

var foo = setTimeout(function(){Ti.API.info("foo");}, 5000);
var bar = setTimeout(function(){Ti.API.info("bar");}, 5000);
clearTimeout(bar);
// ... wait ...
// --> "foo"
// --> "bar"


// @ Safari JS console:

var foo = setTimeout(function(){Ti.API.info("foo");}, 5000);
var bar = setTimeout(function(){Ti.API.info("bar");}, 5000);
clearTimeout(bar);
// ... wait ...
// --> "foo"

Or has someone come-up with a work–around of some kind?

I'd be grateful for every hint! —Cheers.

— asked April 22nd 2010 by Florian Plank
  • bug
  • cleartimeout
  • mobil
  • timeout
0 Comments

1 Answer

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.