Private Names and Methods

Kevin Smith 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.

kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120405/8ea4c54b/attachment.html>


More information about the es-discuss mailing list