Skip to content

Commit

Permalink
Merge 6f3e96f into 5154524
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyminds committed Oct 20, 2015
2 parents 5154524 + 6f3e96f commit 8c7608f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anglue",
"version": "1.0.8",
"version": "1.0.9",
"authors": [
"Tommy Maintz <tommy.maintz@gmail.com>"
],
Expand Down
13 changes: 9 additions & 4 deletions dist/amd/component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/amd/component.js.map

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,14 @@ export function Component(config) {
componentName = `${clsName[0].toLowerCase()}${clsName.slice(1)}`;
}

if (isConfigObject && config.dependencies) {
addStaticGetter(cls, 'dependencies', () => config.dependencies);
if (isConfigObject) {
if (config.dependencies) {
addStaticGetter(cls, 'dependencies', () => config.dependencies);
}

new View(config)(cls);
}

addStaticGetter(cls, 'annotation', () => Annotations.getComponent(componentName, cls));
};
}
Expand Down

0 comments on commit 8c7608f

Please sign in to comment.