Guy Bedford (2014-07-14T17:39:01.000Z)
Currently if I want to subclass the System loader I need to do something
like -

var newLoader = new Loader(System);
newLoader.fetch = function() {
  // ...
}

Effectively we're monkey-patching, which isn't pretty.

It would be nice to be able to do:

class newLoader extends System.constructor {
  constructor(loaderConfig) {
    this.baseURL = loaderConfig.baseURL;
    // ...
  }
  fetch: function() {
    super.fetch
  }
}

In order to allow this, we would need to first define a SystemLoader class,
and make System an instance of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140714/2b002d7d/attachment.html>
forbes at lindesay.co.uk (2014-07-16T22:37:34.380Z)
Currently if I want to subclass the System loader I need to do something
like -

```js
var newLoader = new Loader(System);
newLoader.fetch = function() {
  // ...
}
```

Effectively we're monkey-patching, which isn't pretty.

It would be nice to be able to do:

```js
class newLoader extends System.constructor {
  constructor(loaderConfig) {
    this.baseURL = loaderConfig.baseURL;
    // ...
  }
  fetch: function() {
    super.fetch
  }
}
```

In order to allow this, we would need to first define a SystemLoader class,
and make System an instance of it.