Stop caching threads — YAGNI

This commit is contained in:
Jose Farias
2024-10-12 23:23:12 -06:00
parent f92d361b14
commit 1d6acb6119
19 changed files with 10 additions and 75 deletions
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import { nextFrame } from "helpers"
import { nextFrame } from "helpers/timing_helpers"
export default class extends Controller {
static classes = [ "play" ]
@@ -1,5 +1,5 @@
import { Controller } from "@hotwired/stimulus"
import { debounce } from "helpers"
import { debounce } from "helpers/timing_helpers"
export default class extends Controller {
static targets = [ "list" ]
@@ -1,13 +0,0 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static classes = [ "myComment" ]
connect() {
this.#myComments.forEach(comment => comment.classList.add(this.myCommentClass))
}
get #myComments() {
return this.element.querySelectorAll(`.comment[data-creator-id='${Current.user.id}']`)
}
}