Skip to content

Instantly share code, notes, and snippets.

@erikakers
Created March 21, 2014 17:04
Show Gist options
  • Save erikakers/9690805 to your computer and use it in GitHub Desktop.
Save erikakers/9690805 to your computer and use it in GitHub Desktop.
Underscore extended object module
var Feature = (function(){
var Feature = function(){
this.init();
};
_.extend(Feature.prototype, {
init: function() {
console.log("Feature!");
}
});
return Feature;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment