It seems like that would be the case based on JavaScript's lexical scoping
rules, but in Firefox I get a JavaScript error ("ReferenceError: Prototype
if not defined") when I try to alert(Prototype) or if(Prototype) { ... }.Didn't make sense to me either. :-) -Fred On Sun, Jun 8, 2008 at 4:22 AM, T.J. Crowder <[EMAIL PROTECTED]> wrote: > > Hi Fred, > > No, not in standard JavaScript. The interpreter will work its way up > the scope chain looking for "Prototype"; if it reaches the global > object (which is always the root of the scope chain; the global object > in browser apps is the window object), it assumes the reference is a > property of that object. The property will have the value undefined. -- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
