On Sunday 04 March 2007, Thomas Fuchs wrote:
> You can have a look at this by grabbing the latest SVN trunk, and
> summoning the sound_test.html functional test file.
sound.js ends with a snippet of code that skeletized looks like this
(function(){
if(...){
if(...)
...
else
...
}
})();
I understand what the code does, but I don't understand why it does it
in this way. What's the point of the anonymous function when it is not
used to close over anything in its scope?
Michael
--
Michael Schuerig
mailto:[EMAIL PROTECTED]
http://www.schuerig.de/michael/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---