]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/systems/render.js
Update dependencies
[rbdr/sumo] / lib / systems / render.js
index 8bfa4bf0a2d5c11c7e4be39cc17514417e2b083f..a0b465963ae20b8a369d4284f68e6f326f43e55c 100644 (file)
@@ -55,11 +55,11 @@ export default class RenderSystem extends System {
   added(engine) {
 
     this.renderables = engine.getNodes(RenderableNode);
   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.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.stage.removeChild(event.node.container.container);
     });