Could someone explain what the following line does?

this.initialize.apply(this, arguments);

I know how 'apply' works, but I cannot understand why 'this' is used
twice here? both 'this' refer to the same object (current object).
then why not just call this.initialize(arguments)?.  What's the
difference here?



You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to