In every browser (as far as I know), `clearTimeout(null)` does
nothing, but in node, it raises an exception. For the sake of
interoperability, it strikes me that it should behave as in browsers.
(And the browser behavior seems logical; defensively clearing timeouts
which may or may not exist doesn't really hurt anything.)
[If it's useful, I can send a patch for fixing this, but I imagine you
can do the fix as quickly.]
Cheers,
Jacob Rus
Well, I think it should work for both (or really, just work however
the browser works; I haven't tested what that is for strings, etc.).
Because yes, I currently explicitly set my variables to null.
Cheers,
Jacob
Okay - I'll accept a patch
Hint: http://github.com/ry/node/blob/4253baf4ab02c9700a9fe9e5440a9de35149e908/src/node.js#L36-39