Is this a pure javascript mistake or something else? I attached an eventListener in the class function below and received this error:
Uncaught TypeError: Cannot read property 'call' of undefined
I want to clarify that all the functions being called are properly defined.
function OrbitController(v){
var that = this;
this.view = v;
this.controls = new THREE.OrbitControls(this.view.getCamera(),this.view.renderer.domElement);
this.controls.addEventListener( 'change', that.view.show());// Uncaught TypeError: Cannot read property 'call' of undefined
this.controls.target = new THREE.Vector3(0, 0, 0);
}