Bug 1207490 - Part 11: Remove use of expression closure from browser/modules/DirectoryLinksProvider.jsm. r=Gijs

This commit is contained in:
Tooru Fujisawa 2015-09-23 17:57:45 +09:00
parent 604305198f
commit e3be7e99d0

View File

@ -159,12 +159,14 @@ var DirectoryLinksProvider = {
*/
_newTabHasInadjacentSite: false,
get _observedPrefs() Object.freeze({
enhanced: PREF_NEWTAB_ENHANCED,
linksURL: PREF_DIRECTORY_SOURCE,
matchOSLocale: PREF_MATCH_OS_LOCALE,
prefSelectedLocale: PREF_SELECTED_LOCALE,
}),
get _observedPrefs() {
return Object.freeze({
enhanced: PREF_NEWTAB_ENHANCED,
linksURL: PREF_DIRECTORY_SOURCE,
matchOSLocale: PREF_MATCH_OS_LOCALE,
prefSelectedLocale: PREF_SELECTED_LOCALE,
});
},
get _linksURL() {
if (!this.__linksURL) {