Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 537 Bytes

README.md

File metadata and controls

28 lines (15 loc) · 537 Bytes

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