Skip to content

Commit

Permalink
fix(aurelia): update to use ViewResources instead of ResourceRegistry
Browse files Browse the repository at this point in the history
This is a BREAKING CHANGE. The ResourceRegistry type has been removed.
Only the ViewResources type remains. All APIs have been updated to use
ViewResources.
  • Loading branch information
EisenbergEffect committed Aug 10, 2015
1 parent 910df5f commit f458a19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/aurelia.js
Expand Up @@ -8,7 +8,7 @@ import {
BindingLanguage,
ViewEngine,
ViewSlot,
ResourceRegistry,
ViewResources,
CompositionEngine,
Animator,
DOMBoundary
Expand Down Expand Up @@ -77,26 +77,26 @@ function runTasks(aurelia, tasks){
* @constructor
* @param {Loader} loader The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.
* @param {Container} container The dependency injection container for this Aurelia instance to use. If a container is not specified, Aurelia will create an empty container.
* @param {ResourceRegistry} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
* @param {ViewResources} resources The resource registry for this Aurelia instance to use. If a resource registry is not specified, Aurelia will create an empty registry.
*/
export class Aurelia {
loader:Loader;
container:Container;
resources:ResourceRegistry;
resources:ViewResources;
use:Plugins;

constructor(loader?:Loader, container?:Container, resources?:ResourceRegistry){
constructor(loader?:Loader, container?:Container, resources?:ViewResources){
this.resourcesToLoad = {};
this.preStartTasks = [];
this.postStartTasks = [];
this.loader = loader || new window.AureliaLoader();
this.container = container || new Container();
this.resources = resources || new ResourceRegistry();
this.resources = resources || new ViewResources();
this.use = new Plugins(this);

this.withInstance(Aurelia, this);
this.withInstance(Loader, this.loader);
this.withInstance(ResourceRegistry, this.resources);
this.withInstance(ViewResources, this.resources);

this.container.makeGlobal();
}
Expand Down

0 comments on commit f458a19

Please sign in to comment.