Skip to content

Instantly share code, notes, and snippets.

@DaveStein
DaveStein / Events.js
Created November 22, 2011 01:30
Singleton wrapper around $.Callbacks to emulate Backbone events
Events = (function( $ ) {
// Store each registered $.Callbacks object by namespace
var cache = {},
slice = [].slice;
return {
// Bind callback to event
bind : function( ev, callback, options ) {
WEBVTT
00:01.000 --> 00:59.00
- It will do something.
- It iwll do another things.