Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fix(config): check if configCallback is a function, warn if not
  • Loading branch information
bas080 committed Jun 7, 2016
1 parent 8d13903 commit ec2ab3299df459a169bae04be5c76e0ec22b737e
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/aurelia-view.js
@@ -3,9 +3,12 @@ import {ViewManager} from './view-manager';
import {resolvedView} from './decorators/resolved-view';

function configure(aurelia, configCallback) {
if (configCallback) {
if (typeof configCallback === 'function') {
let config = aurelia.container.get(Config);

configCallback(config);
} else {
console.warn('aurelia-form', 'config takes a function');
}
}

0 comments on commit ec2ab32

Please sign in to comment.