[Cosmo-dev] Re: [commits-cosmo] (br) [4567] this is a better way not to clobber namespaces.

Matthew Eernisse mde at osafoundation.org
Fri Jun 8 11:47:45 PDT 2007


Questions/comments below ...

Travis Vachon wrote:
> The new solution is to mix the cosmo.view.cal object Dojo created (with 
> anything else we've added to it like cosmo.view.cal.dialog) into the 
> object created with the anonymous constructor. This leaves self pointing 
> at the right thing.

Ah, I see now at the very bottom the final param of cosmo.app.pim being 
passed. Duh.

Now this makes sense to me -- flipping stuff around, mixing the stuff 
from the Dojo dummy object (which in this case is the 'layout' namespace 
object) into our "new function"-created object. Nicely done.

And since we'll only ever have one object, the 'real' base object, where 
we're defining that kind of internal scope, this should pretty much keep 
the carpet flat.

Thanks again.


Matthew


More information about the cosmo-dev mailing list