(fn: Function, delay: number)
| 65 | // protractor will not see us. Also we want to have this outside the docregion so as not to confuse |
| 66 | // the reader. |
| 67 | function setInterval(fn: Function, delay: number) { |
| 68 | const zone = (window as any)['Zone'].current; |
| 69 | let rootZone = zone; |
| 70 | while (rootZone.parent) { |
| 71 | rootZone = rootZone.parent; |
| 72 | } |
| 73 | rootZone.run(() => { |
| 74 | window.setInterval(function (this: unknown) { |
| 75 | zone.run(fn, this, arguments as any); |
| 76 | }, delay); |
| 77 | }); |
| 78 | } |
no test coverage detected
searching dependent graphs…