Skip to content

Instantly share code, notes, and snippets.

View erichmenge's full-sized avatar

Erich Menge erichmenge

View GitHub Profile

Keybase proof

I hereby claim:

  • I am erichmenge on github.
  • I am erichmenge (https://keybase.io/erichmenge) on keybase.
  • I have a public key whose fingerprint is 8CC3 9608 23A3 8BF7 AA24 6B71 80A9 8811 C1BC CB7D

To claim this, I am signing this object:

class Handlers
constructor: ->
@handlers = {}
register: (handler, registered_class) ->
@handlers[handler] = registered_class
instantiate: (handlers, element) ->
handlers = handlers.replace(/\s/g, '').split(',')
element.handlers = []