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 Foo = module.exports = function(str) { this.foo = str; this.str = str; }; Foo.prototype.bar = function() { var self = this; return self.foo; }; Foo.prototype.baz = function() { var self = this; return self.str; };