added(engine) {
this.renderables = engine.getNodes(RenderableNode);
- this.renderables.on('nodeAdded', (event) => {
+ this.renderables.addEventListener('nodeAdded', (event) => {
this.application.stage.addChild(event.node.container.container);
});
- this.renderables.on('nodeRemoved', (event) => {
+ this.renderables.addEventListener('nodeRemoved', (event) => {
this.application.stage.removeChild(event.node.container.container);
});
this.application.render();
}
-};
+}