]> git.r.bdr.sh - rbdr/sumo/blobdiff - lib/systems/render.js
Update dependencies
[rbdr/sumo] / lib / systems / render.js
index 83c740dce94b30d9bc641dc28f3240feaabe0094..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);
     });
@@ -92,4 +92,4 @@ export default class RenderSystem extends System {
 
     this.application.render();
   }
 
     this.application.render();
   }
-};
+}