Im trying to understand the declaration of the event handler and the function declaration in this post: https://stackoverflow.com/a/46418688/7727532
Im pretty new to Javascript and jQuery and trying to understand. What I do know is that you declare like the following
$('#clickMe').on('click', doSomeThing(e));
function doSomeThing(e){
console.log(e);
}
The first part I dont understand is
(e) => this._handleScaling(e)
What is happening here? We catch the current object and sending it to function _handleScaling()? But why do we have "(e) =>" before?
Second part is
_handleScaling(e) {
Which if Im right is a local function inside another? Because of the underline start. So maybe the code in the link isnt telling the whole picture?