I have a class for rendering a custom range slider. Inside the class I need to referrence a method which is triggered on mouse move event. Since I need to remove event listener on mouseup I have to reference it.
The structure of class look like this:
class RangeSlider {
constructor(..){
...
}
setRangeValue = () => {
...
}
}
All works fine form me in various browsers but I noticed in error logs that some users get error:
SyntaxError: Unexpected token '='. Expected an opening '(' before a method's parameter list.
I literally have no clue what can be wrong, because in general have no chance to check it out myself as for me in all browsers it works fine. Is there any other way how I can referrence it so I will be able to remove event listener on mouse up?