Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

jbrooksuk/Affair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Affair

Lightweight JavaScript events library, based on Backbone.js Events, but without Underscore.js

Get It

  • bower install affair

API

on - object.on(event, callback, [context]) - Aliased to: bind

off - object.off([event], [callback], [context]) - Aliased to: unbind

trigger - object.trigger(event, [*args])

once - object.once(event, callback, [context])

listenTo - object.listenTo(other, event, callback)

stopListening - object.stopListening([other], [event], [callback])

listenToOnce - object.listenToOnce(other, event, callback)

License

MIT