* Get CSS computed property of the given element * @method * @memberof Popper.Utils * @argument {Eement} element * @argument {String} property
(element, property)
| 1596 | * @argument {String} property |
| 1597 | */ |
| 1598 | function getStyleComputedProperty(element, property) { |
| 1599 | if (element.nodeType !== 1) { |
| 1600 | return []; |
| 1601 | } |
| 1602 | // NOTE: 1 DOM access here |
| 1603 | var window = element.ownerDocument.defaultView; |
| 1604 | var css = window.getComputedStyle(element, null); |
| 1605 | return property ? css[property] : css; |
| 1606 | } |
| 1607 | |
| 1608 | /** |
| 1609 | * Returns the parentNode or the host of the element |
no outgoing calls
no test coverage detected