Skip to content

Commit 21e8179

Browse files
crutchcornjgoux
andcommitted
fix: solve runtime error of 'cb is undefined'
Co-authored-by: jgoux <[email protected]>
1 parent 44f33ae commit 21e8179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mutation-observer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MutationObserver {
2222
}
2323

2424
function _runObservers() {
25-
;[..._observers.values()].forEach(cb => cb())
25+
Array.from(_observers.values()).forEach(cb => cb())
2626
}
2727

2828
export {_runObservers, MutationObserver}

0 commit comments

Comments
 (0)