• Home
  • About
  • Contact
  • Links
  • Snippets
  • Account
     Login  Register
 

rogerpence.com

nerdy things

Calling a class method from an event handler

Draft 2019-01-03 by rp

This article shows how to exploit the this-less power of ES6's arrow functions to reference a client-side JavaScript class (or an object) instance method from an event handler assigned in that class.

javascript es6

Tags

.net ajax bash css debugging design devops django docker es6 firefox fonts git javascript laravel mariadb mysql nginx node npm parcel php powershell programming python recipe regex rp-blog ssl terminal ubuntu ui virtualbox visual studio code vscode webdev webpack xdebug zsh