Bug 1138873 - Remove expression closures from handleResult methods. r=dao

This commit is contained in:
Zach Miller ext:(%20and%20Kevin%20Hutt%20%3Ckhutt12%40wou.edu%3E) 2015-03-11 17:17:16 -07:00
parent d11a9c0d08
commit 9c28564fc0

View File

@ -162,7 +162,7 @@ var FullZoom = {
let ctxt = this._loadContextFromBrowser(browser);
let token = this._getBrowserToken(browser);
this._cps2.getByDomainAndName(browser.currentURI.spec, this.name, ctxt, {
handleResult: function () hasPref = true,
handleResult: function () { hasPref = true; },
handleCompletion: function () {
if (!hasPref && token.isCurrent)
this._applyPrefToZoom(undefined, browser);
@ -231,7 +231,7 @@ var FullZoom = {
let value = undefined;
let token = this._getBrowserToken(browser);
this._cps2.getByDomainAndName(aURI.spec, this.name, ctxt, {
handleResult: function (resultPref) value = resultPref.value,
handleResult: function (resultPref) { value = resultPref.value; },
handleCompletion: function () {
if (!token.isCurrent) {
this._notifyOnLocationChange();
@ -495,7 +495,7 @@ var FullZoom = {
}
let value = undefined;
this._cps2.getGlobal(this.name, this._loadContextFromBrowser(browser), {
handleResult: function (pref) value = pref.value,
handleResult: function (pref) { value = pref.value; },
handleCompletion: function (reason) {
this._globalValue = this._ensureValid(value);
callback.call(this, this._globalValue);