aurelia / loader-webpack

An implementation of Aurelia's loader interface to enable webpack.
MIT License
26 stars 10 forks source link

fix(index): incorrect contextual "this" reference #17

Closed Vheissu closed 7 years ago

Vheissu commented 7 years ago

The require.ensure method on line 120 was using a generic function. Therefore, the this scope was being lost when trying to reference the _getActualResul` method. Changing it to a fat arrow method fixes the issue as the scope of "this" remains in reference to the class containing this method.