зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884750 - Persistent logs options should apply instantly. r=paul
This commit is contained in:
Родитель
319c338204
Коммит
f832714d32
|
@ -383,18 +383,12 @@ WebConsoleFrame.prototype = {
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
_persistLog: null,
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Getter for the persistent logging preference. This value is cached per
|
* Getter for the persistent logging preference.
|
||||||
* instance to avoid reading the pref too often.
|
|
||||||
* @type boolean
|
* @type boolean
|
||||||
*/
|
*/
|
||||||
get persistLog() {
|
get persistLog() {
|
||||||
if (this._persistLog === null) {
|
return Services.prefs.getBoolPref(PREF_PERSISTLOG);
|
||||||
this._persistLog = Services.prefs.getBoolPref(PREF_PERSISTLOG);
|
|
||||||
}
|
|
||||||
return this._persistLog;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче