From da0d85ff8c6923ecbd4427d580d197af666a1b14 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Fri, 30 Oct 2015 02:48:18 +0900 Subject: [PATCH] Bug 1219837 - Part 2: Remove use of expression closure from browser/. r=ttaubert --HG-- extra : commitid : I3YNU2vV2le extra : rebase_source : e3b02ee43f956ea80e0f298c4507052811176601 extra : amend_source : 31230481a90a30ffc7f991ec2ec2454860e85ecb --- .../newtab/RemoteDirectoryLinksProvider.jsm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/browser/components/newtab/RemoteDirectoryLinksProvider.jsm b/browser/components/newtab/RemoteDirectoryLinksProvider.jsm index 30bb29aac62a..8f4155e7b339 100644 --- a/browser/components/newtab/RemoteDirectoryLinksProvider.jsm +++ b/browser/components/newtab/RemoteDirectoryLinksProvider.jsm @@ -159,12 +159,14 @@ let RemoteDirectoryLinksProvider = { */ _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) {