Skip to content

Commit

Permalink
Start with mutation observer
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 18, 2024
1 parent 1d9ef3d commit f117ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/prototype-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { isFunction, isNativeFunction } from './type-utils'
import { logger } from './logger'

interface NativeImplementationsCache {
mutationObserverCtor: typeof MutationObserver
MutationObserver: typeof MutationObserver
}

const cachedImplementations: Partial<NativeImplementationsCache> = {}
Expand Down Expand Up @@ -56,5 +56,5 @@ export function getNativeImplementation<T extends keyof NativeImplementationsCac
}

export function getNativeMutationObserverImplementation(): typeof MutationObserver {
return getNativeImplementation('mutationObserverCtor')
return getNativeImplementation('MutationObserver')
}

0 comments on commit f117ad1

Please sign in to comment.