While the poppy is right, it does not indicate that in coffee script you rarely need the jQuery each method, which, as you noticed, deletes your execution context without your permission.
class Example foo: -> for element in $('.element') @bar $(element) bar: (element) -> element.hide()
The coffee script looping functions support the concept of each without any actual user library code at all. And they also do not create a new area or context, meaning you do not need a bold arrow of any type.
Alex wayne
source share