MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / p

Function p

scripts/new-relic.runtime.js:265–296  ·  view source on GitHub ↗
(e, t, r = !0)

Source from the content-addressed store, hash-verified

263 }))
264 }
265 function p(e, t, r = !0) {
266 const o = e ? i.ee.get(e) : i.ee,
267 c = s.i.handlers
268 if (!o.aborted && o.backlog && c) {
269 if (
270 ((0, n.W)({
271 agentIdentifier: e,
272 type: 'lifecycle',
273 name: 'drain',
274 feature: t,
275 }),
276 r)
277 ) {
278 const e = o.backlog[t],
279 r = c[t]
280 if (r) {
281 for (let t = 0; e && t < e.length; ++t) g(e[t], r)
282 Object.entries(r).forEach(([e, t]) => {
283 Object.values(t || {}).forEach((t) => {
284 t[0]?.on &&
285 t[0].context() instanceof a.y &&
286 !t[0].listeners(e).includes(t[1]) &&
287 t[0].on(e, t[1])
288 })
289 })
290 }
291 }
292 o.isolatedBacklog || delete c[t],
293 (o.backlog[t] = null),
294 o.emit('drain-' + t, [])
295 }
296 }
297 function g(e, t) {
298 var r = e[1]
299 Object.values(t[r] || {}).forEach((t) => {

Callers 8

uFunction · 0.85
fFunction · 0.85
hFunction · 0.85
VFunction · 0.85
eeFunction · 0.85
vFunction · 0.85
yFunction · 0.85
leFunction · 0.85

Calls 3

gFunction · 0.85
cFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected