[Loose Coupling Is A Lie] Code Listing 3
/**
* Example of loose coupling using events
*/
function work(){
this.emit('working');
}
var shovel = {
use: function(){ console.log("Every day I'm shoveling...umph umph") }
};
this.on('working', shovel.use);
work();