Web Dev Solutions

Catalin Mititiuc

From f07d120b4bb245a76bdd80712a33ba8b222d966a Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Fri, 26 Apr 2024 16:08:40 -0700 Subject: Refactor sight line module to remove almost all querying for elements --- src/modules/game/counter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/game/counter.js') diff --git a/src/modules/game/counter.js b/src/modules/game/counter.js index 69552d8..cc15509 100644 --- a/src/modules/game/counter.js +++ b/src/modules/game/counter.js @@ -1,8 +1,11 @@ const svgns = "http://www.w3.org/2000/svg"; export default class Counter { - constructor(svg) { + #board; + + constructor(svg, board) { this.svg = svg; + this.#board = board; this.selectedClass = 'selected'; } -- cgit v1.2.3