i want to bind an anonymous function to a jQuery event listener inside an ES6 class.
Something like:
class MyClass{
constructor(){
$( document ).mousedown( callAnonymous );
}
callAnonymous(e){
//Need class references here
}
}
Is there a simple syntax for this? Couldn't find anything on the web.