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 60cdecf commit ad02911
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,13 @@ export class MutationObservable {
private experimentalOnChangeAdapter = new ExperimentalOnChangeEventAdapter()

private observeElementAttributes(
element: HTMLElement,
element: Element,
attributes: string[],
emitter: ElementChangedEmitter
) {
if (!(element instanceof HTMLElement)) {
return
}
const _emitAttributeMutationEvent = (attributes: AttributeMutations) => {
emitter.emit('attributeChanged', {
element,
Expand Down Expand Up @@ -295,7 +298,7 @@ export class MutationObservable {
}
logger.debug('Observing element', element)
this.observeElementAttributes(
element as HTMLElement,
element,
this.settings.observedAttributes,
emitter
)
Expand Down

0 comments on commit ad02911

Please sign in to comment.