Asserts that a value is a DOM Element.
(value: any)
| 504 | |
| 505 | /** Asserts that a value is a DOM Element. */ |
| 506 | function assertDomElement(value: any) { |
| 507 | if (typeof Element !== 'undefined' && !(value instanceof Element)) { |
| 508 | throw new Error('Expecting instance of DOM Element'); |
| 509 | } |
| 510 | } |
| 511 | |
| 512 | /** |
| 513 | * A directive definition holds additional metadata using bitwise flags to indicate |
no outgoing calls
no test coverage detected
searching dependent graphs…