On Thu, Jan 27, 2011 at 1:26 PM, Wes Garland <[email protected]> wrote: > On Thu, Jan 27, 2011 at 12:37 PM, David Herman <[email protected]>wrote: > >> Or here's a sort of more operational way to think about it: Start with the >> outermost program. It declares a bunch of modules, some of which are loaded >> from external files. [.....] >> > > And one more key difference from CommonJS that's worth pointing out -- > Simple Modules are not singletons, so if two modules include the same > dependency, we get two instances of the dependency, right? > > Yikes. that would be a huge difference and I would hope that the default behavior is that modules are singletons...
Thanks for bringing this up, because if this is the case that's definitely something to ponder. Kevin -- Kevin Dangoor work: http://mozilla.com/ email: [email protected] <[email protected]> blog: http://www.BlueSkyOnMars.com
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

