Bug 1440188 - Fix eslint error from adding intl/l10n to eslint. r=gandalf

MozReview-Commit-ID: 8um44N5dZUv

--HG--
extra : rebase_source : 5d1a01c53a585bca9e396543bf29e3ee3b8565d9
This commit is contained in:
Zibi Braniecki 2018-02-21 18:36:30 -08:00
Родитель 8f3060510e
Коммит e3306c96dc
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -118,8 +118,6 @@ class L10nError extends Error {
* be localized into a different language - for example DevTools.
*/
function defaultGenerateMessages(resourceIds) {
const availableLocales = L10nRegistry.getAvailableLocales();
const appLocales = Services.locale.getAppLocalesAsLangTags();
return L10nRegistry.generateContexts(appLocales, resourceIds);
}
@ -253,14 +251,14 @@ class Localization {
* Register weak observers on events that will trigger cache invalidation
*/
registerObservers() {
Services.obs.addObserver(this, 'intl:app-locales-changed', true);
Services.obs.addObserver(this, "intl:app-locales-changed", true);
}
/**
* Unregister observers on events that will trigger cache invalidation
*/
unregisterObservers() {
Services.obs.removeObserver(this, 'intl:app-locales-changed');
Services.obs.removeObserver(this, "intl:app-locales-changed");
}
/**