[jQuery] Re: Plug-in Developers...

2007-10-01 Thread Guy Fraser
One thing I learnt recently is that just because you can use jQuery doesn't mean the innards of your plugin should be one big chain of jQuery methods. For example, see Scott's Overlabel blog page... Scott's original version used plain JS to do things, however it was a bit difficult to read:

[jQuery] Re: Plug-in Developers...

2007-10-01 Thread Rick Faircloth
7 1:20 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Plug-in Developers... Rick, I agree with you and as far as my plugins and myself are concerned, it is a learning experience for me also. Almost all my code prior to coming upon jQuery has been "for my eyes only" and

[jQuery] Re: Plug-in Developers...

2007-10-01 Thread Tane Piper
One massive tip for developing plugins, is to make them futureproof and compatible with the jQuery.noConflict() is to develop your plugin inside a closure: (function($){ ... })(jQuery); This means you can use. $ inside your plugin and never worry about it not working with jQuery. Since I u

[jQuery] Re: Plug-in Developers...

2007-10-01 Thread Benjamin Sterling
Rick, I agree with you and as far as my plugins and myself are concerned, it is a learning experience for me also. Almost all my code prior to coming upon jQuery has been "for my eyes only" and never thought twice about someone else needing to understand what I heck I am trying to do. But since d