back to krasimirtsonev.com
to blog's home page

Delegation in JavaScript

I think that the delegation is an important part of every programming language. It is also possible in JavaScript.


What you have to do is to pass the scope, i.e. the class that contains the method, and of course the method itself.
Here is the full example:
Sharing ...
Commenting ...
blog comments powered by Disqus