Andro.js is a new JavaScript library that helps you compose objects from fragments of behaviour.
Andro.js takes mixins and applies them, each in its own namespace, to an object, and lets them talk to one another via an event emitter.
示例代码:
var Andro = require('andro').Andro; var andro = new Andro(); function Cube { this.touch = function(contact) { andro.eventer(this).emit("touch", contact); }; };