PDA

View Full Version : superclass.Function.apply() / superclass.Function.call()



plalx
4 Mar 2010, 10:30 AM
I can't find documentation on the Function.call() and Function.apply() methods.
I can't even find where they come from... when looking at the Function object in firebug,
there not there?

What is the difference between lets say:

MyComponent.superclass.initComponent.apply(this,arguments);

and

MyComponent.superclass.initComponent.call(this);

Thanks for help in advance!

Animal
4 Mar 2010, 11:29 AM
I can't find documentation on the Function.call() and Function.apply() methods.
I can't even find where they come from...

They are a part of the programming language you are using.

You should know them, or have reference material for the programming language you are usig.