Hi Eric,

> If I was the author, I will new parent directly and assign it to
> klass.prototype.

That would imply calling the initialize method of the parent class
which is something you'd want avoid.

> So why use usbclass as broker ?

subclass is an empty function (parent isn't: it calls
parent.prototype.initialize), so instantiating it to define
klass.prototype doesn't have any potentially unwanted side effects.

Hope this clarifies your question.

Best,

Tobie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to