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 1804164 commit b781427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function initElement(element) {
observer.init({
name: 'calculateSelectorInit',
observe: ['addedNodes'],
target: selectors[i],
selector: selectors[i],
callback(mutation) {
initEvent(element, mutation.target);
setCalcationResult(element);
Expand Down Expand Up @@ -157,7 +157,7 @@ observer.init({
observer.init({
name: 'CoCreateCalculateInit',
observe: ['addedNodes'],
target: '[calculate]',
selector: '[calculate]',
callback(mutation) {
initElement(mutation.target);
}
Expand Down

0 comments on commit b781427

Please sign in to comment.