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

2009-07-28 Thread damerub
it doesn't have > access to the value otherwise, because of the way "this" works in > JavaScript.) > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Jul 16, 6:21 pm, d

[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 dif