Пример #1
0
function configure(aurelia, cb) {
  var animator = aurelia.container.get(_animator.CssAnimator);
  _aureliaTemplating.Animator.configureDefault(aurelia.container, animator);
  if (cb !== undefined && typeof cb === 'function') {
    cb(animator);
  }
}
Пример #2
0
    return this.use._process().then(function () {
      if (!_this.container.hasHandler(_BindingLanguage$ViewEngine$ViewSlot$ResourceRegistry$CompositionEngine$Animator.BindingLanguage)) {
        var message = 'You must configure Aurelia with a BindingLanguage implementation.';
        logger.error(message);
        throw new Error(message);
      }

      if (!_this.container.hasHandler(_BindingLanguage$ViewEngine$ViewSlot$ResourceRegistry$CompositionEngine$Animator.Animator)) {
        _BindingLanguage$ViewEngine$ViewSlot$ResourceRegistry$CompositionEngine$Animator.Animator.configureDefault(_this.container);
      }

      return loadResources(_this.container, _this.resourcesToLoad, _this.resources).then(function () {
        logger.info('Aurelia Started');
        var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
        document.dispatchEvent(evt);
        return _this;
      });
    });
Пример #3
0
    return this.use._process().then(() => {
      if(!this.container.hasHandler(BindingLanguage)){
        var message = 'You must configure Aurelia with a BindingLanguage implementation.';
        logger.error(message);
        throw new Error(message);
      }

      if(!this.container.hasHandler(Animator)){
        Animator.configureDefault(this.container);
      }

      return loadResources(this.container, this.resourcesToLoad, this.resources).then(() => {
        logger.info('Aurelia Started');
        var evt = new window.CustomEvent('aurelia-started', { bubbles: true, cancelable: true });
        document.dispatchEvent(evt);
        return this;
      });
    });
Пример #4
0
export function configure(aurelia, cb){
  var animator = aurelia.container.get(GreensockAnimator);
  Animator.configureDefault(aurelia.container, animator);
  if(cb !== undefined && typeof(cb) === 'function') cb(animator);
}
Пример #5
0
function configure(aurelia) {
    aurelia_templating_1.Animator.configureDefault(aurelia.container, new animator_1.CssAnimator());
}