Is there a way to cancel a Utils.delay after it has been called?
Can you give more details on what you are trying to do?
I call a function that contains utils.delay to delay an animation. If I click the screen again before the utils.delay occurs, I'd like to cancel the utils.delay and not run the animation behind the utils.delay.
I don't have my computer on me at the moment but I can post my code later. Just wondering if theres a way to cancel delays. Maybe something similar to clearTimeout()
http://cl.ly/ZYf5 <- This should be a nice simple example for you.
I don't believe you can set the delay to a variable in which you cancel... you could always just use a setTimeout if you wanted.
i thought utils.delay also outputted the same timer id variable
You know Cemre I never actually checked what it returns. :/
Yup it just returns the timer id: https://github.com/koenbok/Framer/blob/master/framer/Utils.coffee#L92