Permalink
Browse files

feat(component): show warning when component not defined

  • Loading branch information...
bas080
bas080 committed May 25, 2016
1 parent cd9a709 commit 272d93c0f1d21f079944b5dab327491dc3c04064
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/component.js
@@ -11,7 +11,7 @@
export function component(config, attribute) {
let type = attribute.type;

return customComponent() || frameworkComponent();
return customComponent() || frameworkComponent() || console.warn(`type ${type} does not have a component registered for it.`);

function customComponent() {
let comp = config.components[type]; // has custom component?

0 comments on commit 272d93c

Please sign in to comment.