Skip to content

Commit

Permalink
Remove unneeded this.interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Jun 15, 2016
1 parent ff20f6c commit b641461
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/observer/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,11 @@ export class LocalizationObserver extends Map {

const roots = Array.from(this.rootsByLocalization.get(l10n));
return Promise.all(
roots.map(root => l10n.interactive.then(
bundles => this.translateRoot(root)
))
roots.map(root => this.translateRoot(root, l10n))
);
}

translateRoot(root) {
const l10n = this.localizationsByRoot.get(root);
translateRoot(root, l10n = this.localizationsByRoot.get(root)) {
return l10n.interactive.then(bundles => {
const langs = bundles.map(bundle => bundle.lang);

Expand Down

0 comments on commit b641461

Please sign in to comment.