Skip to content

Commit f458a19

Browse files
fix(aurelia): update to use ViewResources instead of ResourceRegistry
This is a BREAKING CHANGE. The ResourceRegistry type has been removed. Only the ViewResources type remains. All APIs have been updated to use ViewResources.
1 parent 910df5f commit f458a19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/aurelia.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
BindingLanguage,
99
ViewEngine,
1010
ViewSlot,
11-
ResourceRegistry,
11+
ViewResources,
1212
CompositionEngine,
1313
Animator,
1414
DOMBoundary
@@ -77,26 +77,26 @@ function runTasks(aurelia, tasks){
7777
* @constructor
7878
* @param {Loader} loader The loader for this Aurelia instance to use. If a loader is not specified, Aurelia will use a defaultLoader.
7979
* @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.
80-
* @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.
80+
* @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.
8181
*/
8282
export class Aurelia {
8383
loader:Loader;
8484
container:Container;
85-
resources:ResourceRegistry;
85+
resources:ViewResources;
8686
use:Plugins;
8787

88-
constructor(loader?:Loader, container?:Container, resources?:ResourceRegistry){
88+
constructor(loader?:Loader, container?:Container, resources?:ViewResources){
8989
this.resourcesToLoad = {};
9090
this.preStartTasks = [];
9191
this.postStartTasks = [];
9292
this.loader = loader || new window.AureliaLoader();
9393
this.container = container || new Container();
94-
this.resources = resources || new ResourceRegistry();
94+
this.resources = resources || new ViewResources();
9595
this.use = new Plugins(this);
9696

9797
this.withInstance(Aurelia, this);
9898
this.withInstance(Loader, this.loader);
99-
this.withInstance(ResourceRegistry, this.resources);
99+
this.withInstance(ViewResources, this.resources);
100100

101101
this.container.makeGlobal();
102102
}

0 commit comments

Comments
 (0)