Pass an object’s function to another of its functions
This is what I have:
doStuff function works with other functions, but doing the following returns
What’s wrong with what what I have and how can I change it to make it work? Thanks.
this doesn’t refer to the object.
You could use the
.bind() method in order to set the value of
However, that’s not very flexible, therefore you could just bind it within the