(fun)
| 1045 | } |
| 1046 | } ()) |
| 1047 | function runTimeout(fun) { |
| 1048 | if (cachedSetTimeout === setTimeout) { |
| 1049 | //normal enviroments in sane situations |
| 1050 | return setTimeout(fun, 0); |
| 1051 | } |
| 1052 | // if setTimeout wasn't available but was latter defined |
| 1053 | if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { |
| 1054 | cachedSetTimeout = setTimeout; |
| 1055 | return setTimeout(fun, 0); |
| 1056 | } |
| 1057 | try { |
| 1058 | // when when somebody has screwed with setTimeout but no I.E. maddness |
| 1059 | return cachedSetTimeout(fun, 0); |
| 1060 | } catch(e){ |
| 1061 | try { |
| 1062 | // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally |
| 1063 | return cachedSetTimeout.call(null, fun, 0); |
| 1064 | } catch(e){ |
| 1065 | // 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 |
| 1066 | return cachedSetTimeout.call(this, fun, 0); |
| 1067 | } |
| 1068 | } |
| 1069 | |
| 1070 | |
| 1071 | } |
| 1072 | function runClearTimeout(marker) { |
| 1073 | if (cachedClearTimeout === clearTimeout) { |
| 1074 | //normal enviroments in sane situations |
no outgoing calls
no test coverage detected