UNPKG

osr

Version:

osr

13 lines (11 loc) 302 B
var Controller = function(name,model){ this.name = name; this.model = model; } Controller.prototype.inject = function(osr,options){ if(!osr._controllers[this.name]){ osr._controllers[this.name] = this; } return this; } module.exports = exports = Controller;