Skip to content

Commit

Permalink
fix null ref in perfObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjbradshaw committed Feb 2, 2025
1 parent 067a25a commit ffecd86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/child/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,6 @@ The <b>size()</> method has been deprecated and replaced with <b>resize()</>. U
? 0
: document.documentElement.getBoundingClientRect().bottom

performance.mark(PREF_START)

const targetElements = hasTags
? taggedElements
: hasOverflow
Expand Down
4 changes: 2 additions & 2 deletions packages/child/perf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const usedTags = new WeakSet()

const addUsedTag = (el) => typeof el === 'object' && usedTags.add(el)

// let lastPerfEl = null
let perfEl = null
// let lastPerfEl
let perfEl
let details = {}

export const setPerfEl = (el) => {
Expand Down

0 comments on commit ffecd86

Please sign in to comment.