Skip to content

Instantly share code, notes, and snippets.

@luckymancvp
luckymancvp / application.js
Created September 1, 2012 03:12 — forked from tbranyen/application.js
code for organization post
var chat = {
// Create this closure to contain the cached modules
module: function() {
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or load an
// existing module.
return function(name) {
// If this module has already been created, return it.