Skip to content

Commit

Permalink
fix: observer taget has been renamed to selector
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 31, 2024
1 parent bb93fd4 commit 259e5b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function listen(name, callback, selector) {
observer.init({
name: 'lazyloadObserver',
observe: ['childList'],
target: selector,
selector,
callback: observerCallback
})

Expand All @@ -47,7 +47,7 @@ function listen(name, callback, selector) {
name: 'lazyloadAttributeObserver',
observe: ['attributes'],
attributeName: selectorAttributes,
target: selector,
selector,
callback: observerCallback
});

Expand Down

0 comments on commit 259e5b6

Please sign in to comment.