зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1765319 - Part 4: Stop using global this to access global variable in services/. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D144134
This commit is contained in:
Родитель
2a79251616
Коммит
be94355f17
|
@ -101,7 +101,7 @@ var HawkClient = function(host) {
|
|||
this._localtimeOffsetMsec = 0;
|
||||
};
|
||||
|
||||
this.HawkClient.prototype = {
|
||||
HawkClient.prototype = {
|
||||
/*
|
||||
* Construct an error message for a response. Private.
|
||||
*
|
||||
|
|
|
@ -163,7 +163,7 @@ function Intl() {
|
|||
this.init();
|
||||
}
|
||||
|
||||
this.Intl.prototype = {
|
||||
Intl.prototype = {
|
||||
init() {
|
||||
Services.prefs.addObserver("intl.accept_languages", this);
|
||||
},
|
||||
|
|
|
@ -1635,6 +1635,6 @@ Sync11Service.prototype = {
|
|||
};
|
||||
|
||||
var Service = new Sync11Service();
|
||||
this.Service.promiseInitialized = new Promise(resolve => {
|
||||
this.Service.onStartup().then(resolve);
|
||||
Service.promiseInitialized = new Promise(resolve => {
|
||||
Service.onStartup().then(resolve);
|
||||
});
|
||||
|
|
|
@ -25,7 +25,7 @@ var DeclinedEngines = function(service) {
|
|||
|
||||
this.service = service;
|
||||
};
|
||||
this.DeclinedEngines.prototype = {
|
||||
DeclinedEngines.prototype = {
|
||||
updateDeclined(meta, engineManager = this.service.engineManager) {
|
||||
let enabled = new Set(engineManager.getEnabled().map(e => e.name));
|
||||
let known = new Set(engineManager.getAll().map(e => e.name));
|
||||
|
|
|
@ -126,7 +126,7 @@ function SyncAuthManager() {
|
|||
}
|
||||
}
|
||||
|
||||
this.SyncAuthManager.prototype = {
|
||||
SyncAuthManager.prototype = {
|
||||
_fxaService: null,
|
||||
_tokenServerClient: null,
|
||||
// https://docs.services.mozilla.com/token/apis.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче