Bug 1207491 - Part 17: Remove use of expression closure from browser/components/shell/. r=Gijs

--HG--
extra : commitid : 7kBAyRZ5wWe
extra : rebase_source : 41bb407c1161dbad8c6f53ccee5a3f2499d6937b
This commit is contained in:
Tooru Fujisawa 2015-09-23 18:36:23 +09:00
Родитель 9d0fd651c5
Коммит fd86260673
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -111,7 +111,7 @@ var gSetBackground = {
_rgbToHex: function (aR, aG, aB)
{
return "#" + [aR, aG, aB].map(function(aInt) aInt.toString(16).replace(/^(.)$/, "0$1"))
return "#" + [aR, aG, aB].map(aInt => aInt.toString(16).replace(/^(.)$/, "0$1"))
.join("").toUpperCase();
},
#else

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

@ -20,7 +20,7 @@ function colorToHex(aColor) {
var g = (aColor & gMask) >> 8;
var b = (aColor & bMask);
return "#" + [r, g, b].map(function(aInt)
return "#" + [r, g, b].map(aInt =>
aInt.toString(16).replace(/^(.)$/, "0$1"))
.join("").toUpperCase();
}