Skip to content

Commit

Permalink
feat(aurelia): ensure animator implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 27, 2015
1 parent 97ed44c commit e3ab3ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/aurelia.js
@@ -1,7 +1,7 @@
import * as LogManager from 'aurelia-logging';
import {Container} from 'aurelia-dependency-injection';
import {Loader} from 'aurelia-loader';
import {BindingLanguage, ResourceCoordinator, ViewSlot, ResourceRegistry, CompositionEngine} from 'aurelia-templating';
import {BindingLanguage, ResourceCoordinator, ViewSlot, ResourceRegistry, CompositionEngine, Animator} from 'aurelia-templating';
import {Plugins} from './plugins';

var logger = LogManager.getLogger('aurelia'),
Expand Down Expand Up @@ -145,6 +145,10 @@ export class Aurelia {
throw new Error(message);
}

if(!this.container.hasHandler(Animator)){
this.withInstance(Animator, new Animator());
}

this.resourcesToLoad = this.resourcesToLoad.concat(resourcesToLoad);

return loadResources(this.container, resourcesToLoad, this.resources).then(() => {
Expand Down

0 comments on commit e3ab3ab

Please sign in to comment.