Created
March 14, 2016 12:09
-
-
Save masone/ade7d074c49261f78839 to your computer and use it in GitHub Desktop.
Review quiz: What is wrong with this (initEventHandlers)?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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