UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

16 lines (12 loc) 233 B
var Bar = module.exports = function(str) { this.bar = str; this.str = str; }; Bar.prototype.foo = function() { var self = this; return self.bar; }; Bar.prototype.baz = function() { var self = this; return self.str; };