Skip to content

Instantly share code, notes, and snippets.

@masone
Created March 14, 2016 12:09
Show Gist options
  • Save masone/ade7d074c49261f78839 to your computer and use it in GitHub Desktop.
Save masone/ade7d074c49261f78839 to your computer and use it in GitHub Desktop.
Review quiz: What is wrong with this (initEventHandlers)?
initEventHandlers: (callback) ->
unless config.get('activity_log:enabled', true)
return callback()
@handledEvents.forEach (eventName) ->
events.subscribe(eventName, handleEvent)
log.success('ActivityLog: event handlers successfully registered')
callback()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment