score:2

Accepted answer

you can use iife to store a reference to a component in a higher scope and use 'double' context in a returned function.

example:

    events: {
      load: (function(component){
        return function(){
          console.log(this, component); // chart, component
        }
      })(this)
    }

live demo: https://stackblitz.com/edit/highcharts-ecg-pqkkb9


Related Query

More Query from same tag