http://docs.jquery.com/Plugins/Authoring gives a brief explanation of which
is better in which situation, either situation is alright to use, no one is
better than the other for the average programmer, but there are situations
that call for the two types.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of RobG
Sent: Wednesday, April 08, 2009 5:36 AM
To: jQuery (English)
Subject: [jQuery] Re: Learning about functions and methods (I am confused)




On Apr 8, 6:49 pm, "Jordon Bedwell" <jor...@envygeeks.com> wrote:
> Try:
>
> $.extend({
>         myPlugin:{
>                 myExtend:function() {
>                         alert('This');
>                 }
>         }});

Can you say why that is better than:

$.myPlugin.myExtend = function(){ ... }


--
Rob

Reply via email to