Note that I added to all my plugins. I'll add a Thanks to weepy for
the semicolon idea heh :)
Ariel Flesler
On 7 feb, 11:38, Karl Swedberg [EMAIL PROTECTED] wrote:
Thanks for the heads up, Jonah. I'll add this to my plugins.
--Karl
_
Karl Swedbergwww.englishrules.comwww.learningjquery.com
On Feb 7, 2008, at 8:10 AM, weepy wrote:
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- Ocultar texto de la cita -
- Mostrar texto de la cita -