In Refactoring Fowler suggests not re-assigning to a parameter so perhaps a temp variable would be good here

```
var config = cfg || {};
this.downloadUrl = config.downloadUrl;
Portal.cart.DownloadConfirmationWindow.superclass.constructor.call(this, config);
```