MCPcopy
hub / github.com/react/create-react-app / unattach

Function unattach

packages/react-error-overlay/fixtures/bundle_u.mjs:5212–5222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5210 var iframe = global.document.createElement('iframe');
5211 var tref, unloadRef;
5212 var unattach = function() {
5213 debug('unattach');
5214 clearTimeout(tref);
5215 // Explorer had problems with that.
5216 try {
5217 iframe.onload = null;
5218 } catch (x) {
5219 // intentionally empty
5220 }
5221 iframe.onerror = null;
5222 };
5223 var cleanup = function() {
5224 debug('cleanup');
5225 if (iframe) {

Callers 1

cleanupFunction · 0.70

Calls 1

debugFunction · 0.70

Tested by

no test coverage detected