March 30, 2007
A reminder about best practice for JQuery plugin authors
There’s no guarantee that the users of your plugin will have the $() shortcut mapped to JQuery, so internally you should replace it with it’s JQuery() alias. This is specifically an issue for pages utilizing both JQuery and Prototype (and thus anyone using the server-side framework Ruby on Rails). I’m sure this has been covered elsewhere - just wanted to reiterate it because it can be easy to forget. Thanks!
:)

By email






















Agreed! I think we try to promote that on the plugin authoring page. Are there any plugins, in particular, that have this problem? Maybe we can help fix it on our end.
Comment by John Resig — March 30, 2007 @ 10:57 am