Uncaught TypeError: Cannot read property 'parentElem' of undefined
class MyClass {
constructor() {
this.id = 55;
funcCall( this.myFunc );
}
myFunc() {
console.log( this.id );
}
};
const funcCall = ( method ) => {
method( );
}
myClass = new MyClass;
funcCall( this.myFunc.bind(this) );