From 9731a85a9f07b26703e54b007fe32a1ec6982fbc Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Wed, 12 Aug 2015 21:31:48 -0400 Subject: [PATCH] fix(index): update to latest configuration api --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index fb47dfc..f680317 100644 --- a/src/index.js +++ b/src/index.js @@ -1,17 +1,17 @@ import {BindingLanguage} from 'aurelia-templating'; import {TemplatingBindingLanguage} from './binding-language'; -export function configure(aurelia){ +export function configure(config){ var instance, getInstance = function (c){ return instance || (instance = c.invoke(TemplatingBindingLanguage)); }; - if(aurelia.container.hasHandler(TemplatingBindingLanguage)){ - instance = aurelia.container.get(TemplatingBindingLanguage); + if(config.container.hasHandler(TemplatingBindingLanguage)){ + instance = config.container.get(TemplatingBindingLanguage); }else{ - aurelia.container.registerHandler(TemplatingBindingLanguage, getInstance); + config.container.registerHandler(TemplatingBindingLanguage, getInstance); } - aurelia.container.registerHandler(BindingLanguage, getInstance); + config.container.registerHandler(BindingLanguage, getInstance); }