This could be written better, but I don't really know Coffee, so this is the best I could do.

When I had this as a one liner, it was the source of the refresh bug. Maybe land the patch with this and clean up in  a refactor?