Skip to content

Instantly share code, notes, and snippets.

View derhuerst's full-sized avatar

Jannis R derhuerst

View GitHub Profile
@derhuerst
derhuerst / EventEmitter.coffee
Last active October 26, 2017 06:36 — forked from yocontra/EventEmitter.coffee
A minimalistic CoffeeScript event emitter.
# A minimalistic CoffeeScript event emitter.
# Jannis R <[email protected]>
# https://gist.github.com/derhuerst/5433f5ee3342a1de6d81
class EventEmitter
constructor: ->
@_events = {}