Fix for-loop index declarations
This commit is contained in:
parent
01e63d5b1a
commit
81484bbc37
|
@ -547,8 +547,7 @@ function addSection(event, section) {
|
||||||
|
|
||||||
if (section) {
|
if (section) {
|
||||||
codeElement.value = section.code;
|
codeElement.value = section.code;
|
||||||
let i;
|
for (const i in propertyToCss) {
|
||||||
for (i in propertyToCss) {
|
|
||||||
if (section[i]) {
|
if (section[i]) {
|
||||||
section[i].forEach(function(url) {
|
section[i].forEach(function(url) {
|
||||||
addAppliesTo(appliesTo, propertyToCss[i], url);
|
addAppliesTo(appliesTo, propertyToCss[i], url);
|
||||||
|
@ -1234,8 +1233,7 @@ function init() {
|
||||||
// This is an add
|
// This is an add
|
||||||
tE('heading', 'addStyleTitle');
|
tE('heading', 'addStyleTitle');
|
||||||
const section = {code: ''};
|
const section = {code: ''};
|
||||||
let i;
|
for (const i in CssToProperty) {
|
||||||
for (i in CssToProperty) {
|
|
||||||
if (params[i]) {
|
if (params[i]) {
|
||||||
section[CssToProperty[i]] = [params[i]];
|
section[CssToProperty[i]] = [params[i]];
|
||||||
}
|
}
|
||||||
|
@ -1518,8 +1516,7 @@ function showMozillaFormat() {
|
||||||
function toMozillaFormat() {
|
function toMozillaFormat() {
|
||||||
return getSectionsHashes().map(function(section) {
|
return getSectionsHashes().map(function(section) {
|
||||||
let cssMds = [];
|
let cssMds = [];
|
||||||
let i;
|
for (const i in propertyToCss) {
|
||||||
for (i in propertyToCss) {
|
|
||||||
if (section[i]) {
|
if (section[i]) {
|
||||||
cssMds = cssMds.concat(section[i].map(function(v) {
|
cssMds = cssMds.concat(section[i].map(function(v) {
|
||||||
return propertyToCss[i] + '("' + v.replace(/\\/g, '\\\\') + '")';
|
return propertyToCss[i] + '("' + v.replace(/\\/g, '\\\\') + '")';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user