Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Event emitter written in CoffeeScript
JavaScript CoffeeScript
tree: 87b88f69fc

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
test
.gitignore
MIT-LICENSE.txt
README.md
debugging.coffee
debugging.js
holla_back.coffee
holla_back.js

README.md

HollaBack

HollaBack is an event emitter written in CoffeeScript. All examples are written in CoffeeScript.

Usage

To include in browser

<script src="holla_back.js"></script>

To include in nodejs

HollaBack = require('./holla_back')

Then you can create a class which extends HollaBack

HollaBack = require('./holla_back')

class SomethingAwesome extends HollaBack

obj = new SomethingAwesome
obj.bind 'myEvent', -> 1 + 1
obj.trigger 'myEvent'
obj.unbind 'myEvent'

See test cases for more examples

Something went wrong with that request. Please try again.