Skip to content

Commit

Permalink
fix(instance): fix instance passing
Browse files Browse the repository at this point in the history
fixes how the instance is passed to the calling client
  • Loading branch information
zewa666 committed Jun 5, 2015
1 parent 06b2069 commit 9236153
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions dist/amd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ define(['exports', 'aurelia-templating', './animator'], function (exports, _aure
exports.CssAnimator = _animator.CssAnimator;

function configure(aurelia, cb) {
var animator = new _animator.CssAnimator();
var animator = aurelia.container.get(_animator.CssAnimator);
_aureliaTemplating.Animator.configureDefault(aurelia.container, animator);
cb(aurelia.container.get(_animator.CssAnimator));
if (cb !== undefined && typeof cb === 'function') {
cb(animator);
}
}
});
6 changes: 4 additions & 2 deletions dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ var _CssAnimator = require('./animator');
exports.CssAnimator = _CssAnimator.CssAnimator;

function configure(aurelia, cb) {
var animator = new _CssAnimator.CssAnimator();
var animator = aurelia.container.get(_CssAnimator.CssAnimator);
_Animator.Animator.configureDefault(aurelia.container, animator);
cb(aurelia.container.get(_CssAnimator.CssAnimator));
if (cb !== undefined && typeof cb === 'function') {
cb(animator);
}
}
6 changes: 4 additions & 2 deletions dist/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {CssAnimator} from './animator';
export {CssAnimator} from './animator';

export function configure(aurelia, cb){
var animator = new CssAnimator();
var animator = aurelia.container.get(CssAnimator);
Animator.configureDefault(aurelia.container, animator);
cb(aurelia.container.get(CssAnimator));
if(cb !== undefined && typeof(cb) === 'function') {
cb(animator);
}
}
6 changes: 4 additions & 2 deletions dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ System.register(['aurelia-templating', './animator'], function (_export) {
_export('configure', configure);

function configure(aurelia, cb) {
var animator = new CssAnimator();
var animator = aurelia.container.get(CssAnimator);
Animator.configureDefault(aurelia.container, animator);
cb(aurelia.container.get(CssAnimator));
if (cb !== undefined && typeof cb === 'function') {
cb(animator);
}
}

return {
Expand Down
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import {CssAnimator} from './animator';
export {CssAnimator} from './animator';

export function configure(aurelia, cb){
var animator = new CssAnimator();
var animator = aurelia.container.get(CssAnimator);
Animator.configureDefault(aurelia.container, animator);
cb(aurelia.container.get(CssAnimator));
if(cb !== undefined && typeof(cb) === 'function') {
cb(animator);
}
}

0 comments on commit 9236153

Please sign in to comment.