Get rid of ugly this.... calls
[vchess.git] / client / src / components / Board.vue
index 2783381..7257b21 100644 (file)
@@ -157,7 +157,7 @@ export default {
         );
       })
     );
-    const playingColor = userColor || "w"; //default for an observer
+    const playingColor = this.userColor || "w"; //default for an observer
     let elementArray = [choices, gameDiv];
     if (!!this.vr.reserve)
     {
@@ -237,13 +237,6 @@ export default {
     return h(
       'div',
       {
-        'class': {
-          "col-sm-12": true,
-          "col-md-10": true,
-          "col-md-offset-1": true,
-          "col-lg-8": true,
-          "col-lg-offset-2": true,
-        },
         // NOTE: click = mousedown + mouseup
         on: {
           mousedown: this.mousedown,
@@ -370,6 +363,8 @@ export default {
 .reserve-row-1
   margin-bottom: 15px
 
+// NOTE: no variants with reserve of size != 8
+
 div.board
   float: left
   height: 0
@@ -388,8 +383,6 @@ div.board11
   width: 9.09%
   padding-bottom: 9.1%
 
-// NOTE: no variants with reserve of size != 8
-
 .game
   width: 80vh
   margin: 0 auto