Les wrote: > The existing code will not work correctly if compressed > using the Dojo compressor.
Sounds like a problem with the Dojo compressor. This is perfectly valid. In Javascript variables are function scoped, not lexically scoped. So you can declare a variable at the end of a function and use it at the beginning if you want, although that's a really silly thing to do. Having said that... It does hurt my eyes to see the same variable declared twice in the same function :) -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
