c9 / architect

A simple yet powerful plugin system for large-scale node applications
MIT License
981 stars 129 forks source link

hub on callback function bind to app #24

Open bmatusiak opened 10 years ago

bmatusiak commented 10 years ago

it felt convenient to have the "hub" service 'on' function argument 'callback' to inherit architect

hub.on("ready",function(){
   var app = this;
});

hub.on("plugin",function(plugin){
   var app = this;
});

hub.on("service",function(name, service){
   var app = this;
});
janjongboom commented 10 years ago

+1