-
|
Beta Was this translation helpful? Give feedback.
Answered by
logistor
Oct 9, 2024
Replies: 1 comment
-
When parent object is constructed this.abc points both parent abc and child abc. But when callme get invoked in child object this is bound to child abc. You can avoid problem with this using arrow function. Parent also needs an update.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lioutall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When parent object is constructed this.abc points both parent abc and child abc. But when callme get invoked in child object this is bound to child abc.
You can avoid problem with this using arrow function. Parent also needs an update.