I had understood it completely. I'm Chinese, sorry for my english. Best & Thank you.
On 5月19日, 下午7时28分, Tobie Langel <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
