The closures around plugins, when concatenated together (e.g. via Rails 2.0) into one javascript file for production, can confuse the javascript parser - despite the fact there is a new line. I propose that there should be a semicolon at the first character to stop this.
I.e. ;(function($) { rather than (function($) { I think it can confuse the closure as an argument of a function. I've mentioned it before and there's been some good uptake of the idea (e.g. http://dev.jquery.com/view/trunk/plugins/accordion/widget.js) , but the problem hit me again today whilst putting a site out to production - so I thought I'd mention it again. It will save lots of people lots of time :o) Jonah