Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ function setImmediatePolyfill(fn) {
}

// istanbul ignore next
const {
setTimeout,
clearTimeout,
setImmediate = setImmediatePolyfill,
} = globalObj
const clearTimeoutFn = globalObj.clearTimeout
const setImmediateFn = globalObj.setImmediate || setImmediatePolyfill
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// istanbul ignore next probably should have gone above this one

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I should've waited for the build to finish. Could you make that change please?

const setTimeoutFn = globalObj.setTimeout

function newMutationObserver(onMutation) {
const MutationObserverConstructor =
Expand All @@ -36,7 +34,7 @@ function getDocument() {
export {
getDocument,
newMutationObserver,
setImmediate,
setTimeout,
clearTimeout,
clearTimeoutFn as clearTimeout,
setImmediateFn as setImmediate,
setTimeoutFn as setTimeout,
}