Achievements

Nothing fancy, didn't actually change anything. This one's merged with the master though, instead of rebased. That should make our future pull requests way easier. I hope.
Thanks for pointing that one out, changed it for my next patch :).


On 7 July 2014 17:32, Tery Lim <notifications@github.com> wrote:

> In app/lib/utils.coffee:
>
> > @@ -97,3 +98,11 @@ module.exports.functionCreators =
> >    linear: positify(createLinearFunc)
> >    quadratic: positify(createQuadraticFunc)
> >    logarithmic: positify(createLogFunc)
> > +
> > +# Call done with true to satisfy the 'until' goal and stop repeating func
> > +module.exports.keepDoingUntil = (func, wait=100, totalWait=5000) ->
> > +  waitSoFar = 0
> > +  (done = (success) ->
> > +    if (waitSoFar += wait) <= totalWait && not success
>
> guess [image: :coffee:] script way would prefer and than && [image:
> :smile:]
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/codecombat/codecombat/pull/1266/files#r14602900>.
>