Skip to content

Commit eb3f0a1

Browse files
committed
Fix issue with declaring observe options in MutationObserver
1 parent e998cac commit eb3f0a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/assets/js/parallaxed.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Parallaxed {
1919
window.addEventListener('resize', this._onResize);
2020

2121
this._observer = new MutationObserver(this._onDOMChange);
22-
this._observer(document.body, {
22+
this._observer.observe(document.body, {
2323
childList: true,
2424
subtree: true,
2525
});

0 commit comments

Comments
 (0)