r/coffeescript • • Oct 15 '17

Does anyone have a throttle function in coffeescript they can provide me?

I've been trying to find a throttle function to limit mousemove from being called a billion times and nothing I've found is working at all.

4 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/FurryFingers Oct 16 '17

I "thought" was written in coffeescript but couldn't find it - however the source shown seems betrays it's origins in coffeescript - the first line declares three var at the top, something coffeescript does when it transpiles to js

var context, args, result;