Delegation in JavaScript
posted in /home/JavaScript on 2010-12-27 |
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:
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:
Delicious