Shopify/batman — Issue #210: _implementImmediates fails to overwrite $setImmediate, $clearImmediate
Author: pvande
Created: 2011-11-04 21:21:38+00:00
State: open

This leads to cases like where `getHandle` returns `'go1'` for every call, leading to dropped tasks. This happens because the `$setImmediate` and `$clearImmediate` variables aren't actually *used* in the outer scope until after the definition of `_implementImmediates`, leading that method to declare them as local variables shadowing the outer declarations.

This code will solve the problem:

``` coffee
$setImmediate = $clearImmediate = null
_implementImmediates = ->
# ...
```