mikekunze/bang.js — Issue #32: Use coffee's => for scoping in callbacks
Author: mikekunze
Created: 2012-02-01 18:47:47+00:00
State: open

Currently you do something like this:

server = @

so during this callback:

@logger.logMessage 'message', () ->
# @ is related to logger, not server
# must use server reference

Do this instead
@logger.logMessage 'message', () =>
# @ is still in the context in which logMessage was called, server