Skip to content

Instantly share code, notes, and snippets.

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