Skip to content

Commit

Permalink
fix(attribute): bindable attribute check
Browse files Browse the repository at this point in the history
properly check whether the attribute to be translated exists as bindable
on the custom element instead of checking its value

fixes issue #123
  • Loading branch information
zewa666 committed Dec 15, 2016
1 parent 97b6cbb commit 2c45b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class I18N {
if (node.au &&
node.au.controller &&
node.au.controller.viewModel &&
node.au.controller.viewModel[attr]) {
attr in node.au.controller.viewModel) {
node.au.controller.viewModel[attr] = this.tr(key, params);
} else {
node.setAttribute(attr, this.tr(key, params));
Expand Down

0 comments on commit 2c45b08

Please sign in to comment.