teddyzeenny/ember-mocha-adapter — pull request #4 by joeytrapp (2013-08-15 18:24:04+00:00)
Title: On asyncEnd, if done function is defined, get a local var of it

Seems that a race condition exists where the global done var could get
set to null before the function in setTimeout gets executed. In that
case, the d var would get set to null and then would error on `d();`