Skip to content

Instantly share code, notes, and snippets.

@jonathanmarvens
Forked from voodootikigod/closurepattern.js
Created December 12, 2012 08:07
Show Gist options
  • Save jonathanmarvens/4265981 to your computer and use it in GitHub Desktop.
Save jonathanmarvens/4265981 to your computer and use it in GitHub Desktop.
function ClosurePattern() {
this.someMethod = function someMethod() {
console.log('foo');
}
}
var closurePattern = new ClosurePattern();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment