X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/7741a3cc37662ab2ff9606bdaffc0317b79a8dd9..refs/heads/rbdr-bouncy-walls:/lib/systems/render.js?ds=sidebyside diff --git a/lib/systems/render.js b/lib/systems/render.js index 8bfa4bf..a0b4659 100644 --- a/lib/systems/render.js +++ b/lib/systems/render.js @@ -55,11 +55,11 @@ export default class RenderSystem extends System { 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); });