Skip to content

Instantly share code, notes, and snippets.

@rmcauley
Created April 15, 2015 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcauley/b510b23dcb736f2f668e to your computer and use it in GitHub Desktop.
Save rmcauley/b510b23dcb736f2f668e to your computer and use it in GitHub Desktop.
var Rating = function() {
var self = {};
// blah blah
var RatingPrototype = {
onclick: function(e) { this.something(); }
};
self.create = function(json) {
if (json.something) { this.crap = "mglets"; }
this.crap2 = "more mglets";
this.prototype = RatingPrototype;
this.hi = function() {
console.log(json.blurgbal);
};
}
return self;
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment