coffeescript: also capture bound functions.