Bug 884750 - Persistent logs options should apply instantly. r=paul

This commit is contained in:
DOrian JAMINAIS 2013-06-23 09:11:00 -04:00
Родитель 319c338204
Коммит f832714d32
1 изменённых файлов: 2 добавлений и 8 удалений

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

@ -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;
}, },
/** /**