Skip to content

Instantly share code, notes, and snippets.

View thomaseggum's full-sized avatar

Thomas Johan Eggum thomaseggum

View GitHub Profile
var mynamespace = mynamespace || {};
(function(){
var counter = 0;
function incrementCounter(){
counter ++;
}
mynamespace.someobject = {
counter : counter,