Skip to content
Snippets Groups Projects
Commit 72d2c63f authored by lowercasedonkey's avatar lowercasedonkey
Browse files

change row to rows for clarity

parent 3160b3c2
No related branches found
No related tags found
No related merge requests found
......@@ -251,9 +251,9 @@ App.UI.SlaveInteract.drugs = function(slave) {
title.append(chosenDrug);
el.append(title);
el.appendChild(generateRow(drugOptions));
el.appendChild(generateRows(drugOptions));
function generateRow(drugArray) {
function generateRows(drugArray) {
let row = document.createElement('span');
for (let i = 0; i < drugArray.length; i++) {
let link;
......@@ -266,7 +266,7 @@ App.UI.SlaveInteract.drugs = function(slave) {
continue;
} else {
drugArray[i].text += " ERROR, THIS SCENE WAS NOT ENTERED CORRECTLY";
console.log("Trash found while generateRow() was running: " + keys[j] + ": " + drugArray[i][keys[j]]);
console.log("Trash found while generateRows() was running: " + keys[j] + ": " + drugArray[i][keys[j]]);
break;
}
}
......@@ -664,21 +664,21 @@ App.UI.SlaveInteract.useSlaveDisplay = function(slave) {
});
}
el.append(`Or use ${him} here: `);
el.appendChild(generateRow(sexOptions));
el.appendChild(generateRows(sexOptions));
if (!jQuery.isEmptyObject(fillFaceOptions)) {
let fill = document.createElement('div');
fill.appendChild(document.createTextNode(` Fill ${his} mouth with: `));
fill.appendChild(generateRow(fillFaceOptions));
fill.appendChild(generateRows(fillFaceOptions));
el.appendChild(fill);
}
if (!jQuery.isEmptyObject(fillAssOptions)) {
let fill = document.createElement('div');
fill.appendChild(document.createTextNode(` Fill ${his} ass with: `));
fill.appendChild(generateRow(fillAssOptions));
fill.appendChild(generateRows(fillAssOptions));
el.appendChild(fill);
}
function generateRow(sexArray) {
function generateRows(sexArray) {
let row = document.createElement('span');
for (let i = 0; i < sexArray.length; i++) {
let link;
......@@ -691,7 +691,7 @@ App.UI.SlaveInteract.useSlaveDisplay = function(slave) {
continue;
} else {
sexArray[i].text += " ERROR, THIS SCENE WAS NOT ENTERED CORRECTLY";
console.log("Trash found while generateRow() was running: " + keys[j] + ": " + sexArray[i][keys[j]]);
console.log("Trash found while generateRows() was running: " + keys[j] + ": " + sexArray[i][keys[j]]);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment