From 9b10a0cfb21d7dcf926d08810a8713e97a197925 Mon Sep 17 00:00:00 2001
From: Vas <whiterocket@outlook.com>
Date: Thu, 31 May 2018 15:20:29 +0300
Subject: [PATCH] fix remaining on load bugs

---
 src/js/rulesAssistantOptions.tw | 48 ++++++++++++++++-----------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/src/js/rulesAssistantOptions.tw b/src/js/rulesAssistantOptions.tw
index 463c251dcbe..7102359e32e 100644
--- a/src/js/rulesAssistantOptions.tw
+++ b/src/js/rulesAssistantOptions.tw
@@ -245,7 +245,7 @@ window.rulesAssistantOptions = (function() {
 		selectItem(item) {
 			if (this.selectedItem) this.selectedItem.deselect();
 			this.selectedItem = item;
-			setValue(item.data);
+			this.setValue(item.data);
 			this.propagateChange();
 		}
 
@@ -320,7 +320,7 @@ window.rulesAssistantOptions = (function() {
 		select() {
 			if (this.selected) return false;
 			this.parent.selectItem(this);
-			this.elem.classList.add("selected");
+			this.element.classList.add("selected");
 			this.selected = true;
 			return true;
 		}
@@ -948,7 +948,7 @@ window.rulesAssistantOptions = (function() {
 		render() { return document.createElement("div"); }
 	}
 
-	class AutoSurgerySection extends Element {
+	class AutosurgerySection extends Element {
 		constructor() {
 			super();
 			this.appendChild(new VisionSurgeryList());
@@ -2522,7 +2522,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2547,7 +2547,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2572,7 +2572,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2597,7 +2597,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2622,7 +2622,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2635,7 +2635,7 @@ window.rulesAssistantOptions = (function() {
 				["sacrament"],
 				["sacrilege"],
 				["possessive"],
-				["paternalist"]
+				["paternalist"],
 			];
 			super("Upper back tattoos", items);
 			this.selectValue(V.currentRule.set.backTat);
@@ -2647,7 +2647,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2672,7 +2672,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2697,7 +2697,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2709,7 +2709,7 @@ window.rulesAssistantOptions = (function() {
 				["sacrament"],
 				["sacrilege"],
 				["possessive"],
-				["paternalist"]
+				["paternalist"],
 			];
 			super("Dick tattoos", items);
 			this.selectValue(V.currentRule.set.dickTat);
@@ -2721,7 +2721,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2734,7 +2734,7 @@ window.rulesAssistantOptions = (function() {
 				["sacrament"],
 				["sacrilege"],
 				["possessive"],
-				["paternalist"]
+				["paternalist"],
 			];
 			super("Buttock tattoos", items);
 			this.selectValue(V.currentRule.set.buttTat);
@@ -2746,7 +2746,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2758,7 +2758,7 @@ window.rulesAssistantOptions = (function() {
 				["sacrament"],
 				["sacrilege"],
 				["possessive"],
-				["paternalist"]
+				["paternalist"],
 			];
 			super("Anal tattoo or bleaching", items);
 			this.selectValue(V.currentRule.set.anusTat);
@@ -2770,7 +2770,7 @@ window.rulesAssistantOptions = (function() {
 		constructor() {
 			const items = [
 				["no default setting"],
-				["none", 0]
+				["none", 0],
 				["tribal patterns"],
 				["flowers"],
 				["counting"],
@@ -2783,7 +2783,7 @@ window.rulesAssistantOptions = (function() {
 				["sacrament"],
 				["sacrilege"],
 				["possessive"],
-				["paternalist"]
+				["paternalist"],
 			];
 			super("Leg tattoos", items);
 			this.selectValue(V.currentRule.set.legsTat);
@@ -2796,7 +2796,7 @@ window.rulesAssistantOptions = (function() {
 			const items = [
 				["no default setting"],
 				["fixed", 1],
-				["blurred", -1]
+				["blurred", -1],
 			];
 			super("Vision correction", items);
 			this.selectValue(V.currentRule.set.surgery_eyes);
@@ -2809,7 +2809,7 @@ window.rulesAssistantOptions = (function() {
 			const items = [
 				["no default setting"],
 				["implanted", 1],
-				["removed", 0]
+				["removed", 0],
 			];
 			super("Lactation drug implants", items);
 			this.selectValue(V.currentRule.set.surgery_lactation);
@@ -2822,7 +2822,7 @@ window.rulesAssistantOptions = (function() {
 			const items = [
 				["no default setting"],
 				["implanted", 1],
-				["removed", 0]
+				["removed", 0],
 			];
 			super("Prostate production enhancing drug implants", items);
 			this.selectValue(V.currentRule.set.surgery_prostate);
@@ -2851,7 +2851,7 @@ window.rulesAssistantOptions = (function() {
 				["plush", 20],
 				["big", 40],
 				["huge", 70],
-				["facepussy", 95]
+				["facepussy", 95],
 			];
 			super("Lip implants", items);
 			this.selectValue(V.currentRule.set.surgery_lips);
@@ -2897,7 +2897,7 @@ window.rulesAssistantOptions = (function() {
 			const items = [
 				["no default setting"],
 				["tightening", 1],
-				["virginity restoration", 2]
+				["virginity restoration", 2],
 			];
 			super("Orifice Tightening", items);
 			this.selectValue(V.currentRule.set.surgery_holes);
-- 
GitLab