I can't do it in there, because it /has/ to be done within the timeout ...
that's where the errors happen when the timeout has finished but the class
has been flagged as destroyed

I am almost done with specs


On Fri, Mar 14, 2014 at 4:37 PM, Aditya <notifications@github.com> wrote:

> In public/lib/delay.js:
>
> > @@ -9,7 +9,7 @@ define([
> >    return function delay (fn, time, context) {
> >      var args = toArray(arguments, 3);
> >      return setTimeout(function () {
> > -      fn.apply(context, args);
> > +      !context.destroyed && fn.apply(context, args);
>
> do this in WBUtilsMixin instead .. this is generic & can be used with
> classes with no concept of being "destroyed"
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/wunderlist/wunderbits.core/pull/23/files#r10612612>
> .
>