I get the empty array instead of nodes of camera path what I do wrong?
When clicked the button there should be passed the nodes so then camera would rotate
// menu.js
const self = this;
btn.addEventListener('click', function(){ self.fire('clickedBtn', self.cam.script.cameraAnim.nodes)});
// cameraAnim.js
const onClickedBtn = nodes => nodes = this.pathRoot.children;
this.on('clickedBtn', onClickedBtn);