[mochikit] why use MochiKit.Base.update to create the mochikit object hierarchy?

2009-03-29 Thread Freek Zindel
When looking at the source code for MochiKit I found that the object hierarchy is created with calls to update. e.g.: MochiKit.Base.update(MochiKit.Dom,{...}); I am eager to learn about the rationale for doing this so that I may enhance my understanding of javascript. What is the advantage of

[mochikit] Re: why use MochiKit.Base.update to create the mochikit object hierarchy?

2009-03-29 Thread Bob Ippolito
The reason I chose not to hide methods in a scope is so that you could monkeypatch them if you needed to. In retrospect I probably should've just done it in a scope because it would make the code smaller. Using an object literal was the compromise I chose between assigning each property by