Skip to content

Instantly share code, notes, and snippets.

@colladow
colladow / thredup.stuff.js
Created February 21, 2012 19:47
Namespace It!
var thredup = {};
(function(thredup){
thredup.stuff = function(foo){
var self = {},
foo = foo;
self.bar = function(){
console.log(foo);
};
@colladow
colladow / stuff.js
Created February 21, 2012 19:21
Better JavaScript
var stuff = function(){
var self = {};
self.foo = function(){
};
self.bar = function(){
};
self.baz = function(){
};
@colladow
colladow / thredup.js
Created February 21, 2012 19:07
Really bad JavaScript.
function foo(){
}
function bar(){
}
function baz(){
}
$(document).ready(function(){