diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-30 23:00:49 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-31 11:31:00 +0800 |
| commit | 2a01edfbe920db25ca752371b889b08dce9025ac (patch) | |
| tree | b3e63e1db61899c30cbdeaf789f3abdab7c50c69 /src | |
| parent | 795ccde9c1fe2bf2009b33d2d580f87d49cf9898 (diff) | |
fix: typo for mutation observer
Diffstat (limited to 'src')
| -rw-r--r-- | src/dumbymap.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index 7fbf372..dd5ae79 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
| @@ -236,7 +236,7 @@ export const generateMaps = (container, { | |||
| 236 | if (target.matches?.('.mapclay') || target.closest?.('.mapclay')) continue | 236 | if (target.matches?.('.mapclay') || target.closest?.('.mapclay')) continue |
| 237 | 237 | ||
| 238 | // In case observer triggered by data attribute | 238 | // In case observer triggered by data attribute |
| 239 | if (mutation.type === 'attribute') { | 239 | if (mutation.type === 'attributes') { |
| 240 | delete target.dataset.initDumby | 240 | delete target.dataset.initDumby |
| 241 | } | 241 | } |
| 242 | 242 | ||