How to interrupt timeouts for some elements?
Compact syntax with timing methods:
1
2
// $('.some').wait(timeout)…
$('.some').unwait();
Compare this to the old way with more syntactic fluff:
1
2
// var timer = setTimeout(function(){ … }, timeout))
clearTimeout(timer);