JavaScript class methods are not bound
Passing an instance method as a callback can make this undefined or point elsewhere. Bind it or use an arrow-field method deliberately.
- @narwhalix▲ 4
Superb
Outstanding
- @mrnarwhal55▲ 3
Gem
Lifesaver
Fundamental
- @imsa-mehta▲ 3
Appreciate the write-up on "JavaScript class methods are not bound". Useful for anyone using javascript / classes.
Good to see "JavaScript class methods are not bound" written down. Handy reference for anyone working with javascript / classes.
- @sohmeh▲ 2
Good to see "JavaScript class methods are not bound" written down. Handy reference for anyone working with javascript / classes.
"JavaScript class methods are not bound" is a useful thing to know about with javascript / classes. Thanks for sharing it.
Practical
Masterful
- @deneil2121▲ 2
Sound
- @ohmshawas23▲ 2
Timely
- @ohmshawas23▲ 2
Quality
Gem
Valid
- @saltysamm▲ 1
"JavaScript class methods are not bound" is a useful thing to know about with javascript / classes. Thanks for sharing it.
- @hk3narwhal▲ 1
Learned
- @dearsohum▲ 1
"JavaScript class methods are not bound" is a useful thing to know about with javascript / classes. Thanks for sharing it.
- @aarya-mehta▲ 1
Clear note on javascript / classes. "JavaScript class methods are not bound" is the kind of detail that is easy to overlook.
Treasure
Awesome
Specific and to the point: "JavaScript class methods are not bound". Worth a look if you touch javascript / classes.
Confirmed