Bug 1207490 - Part 13: Remove use of expression closure from browser/modules/Windows8WindowFrameColor.jsm. r=Gijs

This commit is contained in:
Tooru Fujisawa 2015-09-23 17:58:01 +09:00
parent cddb1a18dd
commit aa77e360ba

View File

@ -31,7 +31,7 @@ const Windows8WindowFrameColor = {
// Zero-pad the number just to make sure that it is 8 digits. // Zero-pad the number just to make sure that it is 8 digits.
customizationColorHex = ("00000000" + customizationColorHex).substr(-8); customizationColorHex = ("00000000" + customizationColorHex).substr(-8);
let customizationColorArray = customizationColorHex.match(/../g); let customizationColorArray = customizationColorHex.match(/../g);
let [unused, fgR, fgG, fgB] = customizationColorArray.map(function(val) parseInt(val, 16)); let [unused, fgR, fgG, fgB] = customizationColorArray.map(val => parseInt(val, 16));
let colorizationColorBalance = Registry.readRegKey(HKCU, dwmKey, let colorizationColorBalance = Registry.readRegKey(HKCU, dwmKey,
"ColorizationColorBalance") || 78; "ColorizationColorBalance") || 78;
// Window frame base color when Color Intensity is at 0, see bug 1004576. // Window frame base color when Color Intensity is at 0, see bug 1004576.