MCPcopy Create free account
hub / github.com/TruthHun/BookStack / runClearTimeout

Function runClearTimeout

static/word2md/mammoth.browser.js:23926–23952  ·  view source on GitHub ↗
(marker)

Source from the content-addressed store, hash-verified

23924
23925}
23926function runClearTimeout(marker) {
23927 if (cachedClearTimeout === clearTimeout) {
23928 //normal enviroments in sane situations
23929 return clearTimeout(marker);
23930 }
23931 // if clearTimeout wasn't available but was latter defined
23932 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
23933 cachedClearTimeout = clearTimeout;
23934 return clearTimeout(marker);
23935 }
23936 try {
23937 // when when somebody has screwed with setTimeout but no I.E. maddness
23938 return cachedClearTimeout(marker);
23939 } catch (e){
23940 try {
23941 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
23942 return cachedClearTimeout.call(null, marker);
23943 } catch (e){
23944 // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
23945 // Some versions of I.E. have different rules for clearTimeout vs setTimeout
23946 return cachedClearTimeout.call(this, marker);
23947 }
23948 }
23949
23950
23951
23952}
23953var queue = [];
23954var draining = false;
23955var currentQueue;

Callers 1

drainQueueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected