I use the on() function of createjs:
myObj.on("mousedown", (e)=>{
this.myObjMouseDown(e);
});
now, I want to remove the listener, I trying to write this code, with the off() function:
myObj.off("mousedown", (e)=>{
this.myObjMouseDown(e);
});
but, The code does not seem to be working correctly.
How should I write to cancel the event?
Note: Notice that I need to use an arrow function, because of the word "this".