[Proto-Scripty] Re: Any way to access class attributes when using 'each' to iterate over an array?

2009-07-08 Thread T.J. Crowder
Hi, Within the function called by #each, by default the context (the this value) is a reference to the global object ('window', on web browsers), not the same context as the code calling #each. This is how JavaScript functions work: Unless you do something to explicitly set this when calling

[Proto-Scripty] Re: Any way to access class attributes when using 'each' to iterate over an array?

2009-07-08 Thread David Behler
Thanks alot! That worked! I already guessed it had something to do with the context but didn't know how to change it... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to