On Apr 1, 2006, at 1:58 PM, faser wrote:

>
> Hi, I'm doing some experiments with mochikit and everything seems to
> work well.
> It is a great library.
> I have a question probably more related to javascript than mochikit.
> I'm not sure what is the best method to create a "class" in  
> javascript.
> I have seen we can use 3 methods:
--
> I was used to use the first one and with the prototype for defining  
> the
> class methods,
> but currently it seems to me that the third is more used. Why?

You can create class-like objects however you want.  It's a style/ 
coding convention issue, there are slight pros and cons to each of  
the styles, but nothing important enough to mention.  None of  
MochiKit's features are in any way influenced by how you organize  
your code.

-bob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to