Created
April 15, 2015 09:04
-
-
Save rmcauley/b510b23dcb736f2f668e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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