Loader vs ES6 Classes

Kevin Smith zenparsing at gmail.com
Mon Aug 4 10:41:04 PDT 2014

> We are actually using state a lot for configuration. And there's ongoing
> discussion about how to do it. So far we've been extending the Loader
> instance with our own properties (e.g. loader.depCache = {}). The main
> reason is that we want our extensions to the loader to work both on new
> instances of the Loader class and on the System loader, which can't be
> subclassed.

Curious:  why can't the system loader be subclassed?  I get that `System`
is an instance, but why can't you subclass whatever the `System` instance
is based on?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140804/2bdd8cdd/attachment.html>

More information about the es-discuss mailing list