You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should clearTimeout/clearInterval be interchangeable? #179
The clearTimeout() and clearInterval() methods must clear the entry identified as handle from the list of active timers of the WindowTimers object on which the method was invoked, if any, where handle is the argument passed to the method.
I think the spec is exceptionally clear here, and anything that duplicates that information should be left to places like MDN. Any other editors disagree?
Since it's a bit surprising I wouldn't object to a PR for a note. <span class="note">They indeed clear entries from the same list.</span> That this can potentially bite new implementations (@jdm works on Servo) is somewhat telling.
Activity
domenic commentedon Sep 23, 2015
How is it not clear?
There's a single list of active timers.
jdm commentedon Sep 23, 2015
Eh. A note calling out that they can be used interchangeably would have been clearer to me.
domenic commentedon Sep 23, 2015
I think the spec is exceptionally clear here, and anything that duplicates that information should be left to places like MDN. Any other editors disagree?
annevk commentedon Sep 24, 2015
Since it's a bit surprising I wouldn't object to a PR for a note.
<span class="note">They indeed clear entries from the same list.</span>That this can potentially bite new implementations (@jdm works on Servo) is somewhat telling.Ms2ger commentedon Sep 24, 2015
Servo actually gets it right; I'd just always assumed it was wrong. This seems surprising enough to warrant an extra note.
Fixes whatwg#179. Added note about clearing timers
added note about clearing timers
Fixes whatwg#179. Added note about clearing timers
Fixes whatwg#179: Add note about clearing timers
Fixes whatwg#179: Add note about clearing timers