(fun)
| 557 | } |
| 558 | } ()) |
| 559 | function runTimeout(fun) { |
| 560 | if (cachedSetTimeout === setTimeout) { |
| 561 | //normal enviroments in sane situations |
| 562 | return setTimeout(fun, 0); |
| 563 | } |
| 564 | // if setTimeout wasn't available but was latter defined |
| 565 | if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { |
| 566 | cachedSetTimeout = setTimeout; |
| 567 | return setTimeout(fun, 0); |
| 568 | } |
| 569 | try { |
| 570 | // when when somebody has screwed with setTimeout but no I.E. maddness |
| 571 | return cachedSetTimeout(fun, 0); |
| 572 | } catch(e){ |
| 573 | try { |
| 574 | // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally |
| 575 | return cachedSetTimeout.call(null, fun, 0); |
| 576 | } catch(e){ |
| 577 | // 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 |
| 578 | return cachedSetTimeout.call(this, fun, 0); |
| 579 | } |
| 580 | } |
| 581 | |
| 582 | |
| 583 | } |
| 584 | function runClearTimeout(marker) { |
| 585 | if (cachedClearTimeout === clearTimeout) { |
| 586 | //normal enviroments in sane situations |
no outgoing calls
no test coverage detected