Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Dec 17, 2024
1 parent 4bee35b commit 60cdecf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class MutationObservable {

const shouldDebounceElement = shouldDebounce(element)

const _emitAttributeMutationEventDebounced = shouldDebounceElement
const _emitMaybeDebouncedEvent = shouldDebounceElement
? debounceWithKey(
emit,
// debounce based on the attribute names, so that we can debounce all changes to a single attribute. e.g if attribute "value" changes, that gets debounced, but if another attribute changes, that gets debounced separately
Expand Down Expand Up @@ -267,7 +267,7 @@ export class MutationObservable {
...mutations,
})

_emitAttributeMutationEventDebounced(mutations)
_emitMaybeDebouncedEvent(mutations)
}

const observer = new MutationObserver(cb)
Expand Down

0 comments on commit 60cdecf

Please sign in to comment.