Private Names and Methods
khs4473 at gmail.com
Thu Apr 5 12:26:29 PDT 2012
> No, in the example Axel showed, the private name is block-scoped and does
> not leak. Same goes for a module: you'd need to export the binding. Or so
> I've thought -- do you see another way the name could leak?
No - I just misunderstood Axel's point. IIUC, he's showing how a privately
named method can always "travel along" with the methods that require it, by
bundling those methods together in a mixin object.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss