[Proto-Scripty] Re: What is this.initialize.apply(this, arguments);

2009-07-28 Thread damerub
Software Engineer, consulting services available On Jul 16, 6:21 pm, damerub mcaca...@gmail.com wrote: 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

[Proto-Scripty] What is this.initialize.apply(this, arguments);

2009-07-17 Thread damerub
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