DOM ノードをキーとして扱う場合は Map/WeakMap を使う(オブジェクトだとダメ)

jay-esjay-es のブックマーク 2021/10/09 10:42

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

When a JavaScript WeakMap() Actually Came in Handy

    Back when I was working on slide-element, I noticed an issue that would occur when I rapidly toggled an element open & closed. If the previous animation wasn’t allowed to finish, the new one would ...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう