зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9d0fd651c5
Коммит
fd86260673
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче