[dojo-contributors] defineClass

Tom Trenka ttrenka at gmail.com
Thu Apr 27 01:24:09 EDT 2006

I don't really mean to continually butt heads here, but I'm still failing to
see the point/need for this?  It seems like it's an alternate way of
creating objects in Javascript, except instead of doing it the way the
language was designed there's basically a number of additional properties
that are added for the sole purpose of being able to get at the immediate

I don't have a problem with having a function that can take an
initialization function and use that in conjunction with a constructor; that
seems like a pretty good mechanism for deserialization from custom
serialization formats in the very least.  But this looks an awful lot to me
like it's trying to force JS to do something that's more common in other

Can you give us a use case or two where there would be a definite advantage
to using this over more traditional methods?


On 4/25/06, Scott J. Miles <sjmiles at dojotoolkit.org> wrote:
> We discussed some weeks ago a helper function to define/extend classes. I
> propose a function to do that, interested parties can review it here:
> http://itch.homeip.net/turboajax/defineClass.html
> Scott
> P.S. It's really quite simple. I only made a separate page because I
> figured
> Outlook would mangle the formatting, I couldn't get the Wiki to cooperate,
> and I wanted to be as clear as possible.
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-contributors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20060427/de586f1c/attachment.htm 

More information about the dojo-contributors mailing list