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

Function le

scripts/new-relic.runtime.js:2798–2885  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2796 const de = {},
2797 ue = ['open', 'send']
2798 function le(e) {
2799 var t = e || ae.ee
2800 const r = (function (e) {
2801 return (e || ae.ee).get('xhr')
2802 })(t)
2803 if (void 0 === f.gm.XMLHttpRequest) return r
2804 if (de[r.debugId]++) return r
2805 ;(de[r.debugId] = 1), (0, oe.u)(t)
2806 var n = (0, ce.YM)(r),
2807 i = f.gm.XMLHttpRequest,
2808 s = f.gm.MutationObserver,
2809 o = f.gm.Promise,
2810 a = f.gm.setInterval,
2811 c = 'readystatechange',
2812 d = [
2813 'onload',
2814 'onerror',
2815 'onabort',
2816 'onloadstart',
2817 'onloadend',
2818 'onprogress',
2819 'ontimeout',
2820 ],
2821 u = [],
2822 l = (f.gm.XMLHttpRequest = function (e) {
2823 const t = new i(e),
2824 s = r.context(t)
2825 try {
2826 r.emit('new-xhr', [t], s),
2827 t.addEventListener(
2828 c,
2829 ((o = s),
2830 function () {
2831 var e = this
2832 e.readyState > 3 &&
2833 !o.resolved &&
2834 ((o.resolved = !0), r.emit('xhr-resolved', [], e)),
2835 n.inPlace(e, d, 'fn-', b)
2836 }),
2837 (0, P.jT)(!1)
2838 )
2839 } catch (e) {
2840 ;(0, h.R)(15, e)
2841 try {
2842 r.emit('internal-error', [e])
2843 } catch (e) {}
2844 }
2845 var o
2846 return t
2847 })
2848 function p(e, t) {
2849 n.inPlace(t, ['onreadystatechange'], 'fn-', b)
2850 }
2851 if (
2852 ((function (e, t) {
2853 for (var r in e) t[r] = e[r]
2854 })(i, l),
2855 (l.prototype = i.prototype),

Callers 2

constructorMethod · 0.85
constructorMethod · 0.85

Calls 6

pFunction · 0.85
aFunction · 0.85
addEventListenerMethod · 0.80
yFunction · 0.70
getMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected