Here is my CoffeeScript snippet:
setTimeout (-> @checkProgress()), 5000
After executing this code in the browser, I encountered the following error message:
TypeError: this.checkProgress is not a function
The actual method implementation looks like this:
checkProgress: ->
~ code
~ code
~ code
setTimeout (-> @checkProgress()), 5000
I need to figure out how to call the method again at some point. Any suggestions would be appreciated. Thanks.