Skip to content

Instantly share code, notes, and snippets.

@a1digital
a1digital / jquery.ba-tinypubsub.js
Created October 6, 2012 12:54 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
{
// A list of URLs that each contain a JSON file with a list of repositories.
// The repositories from these channels are placed in order after the
// repositories from the "repositories" setting
"repository_channels": [
"https://sublime.wbond.net/repositories.json"
],
// A list of URLs that contain a packages JSON file. These repositories
// are placed in order before repositories from the "repository_channels"
<div class='document' role='document'>
<section class='header container' role='definition'>
<div class='navigation'>
<div class='frame'>
<header class='logo'>
<h1></h1>
</header>
<nav class='menu' role='directory'>
<ul>
<li>