(element)
| 138 | }; |
| 139 | |
| 140 | var outerHeight = function outerHeight(element) { |
| 141 | var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
| 142 | |
| 143 | var height = element.offsetHeight; |
| 144 | if (withMargin) { |
| 145 | var style = window.getComputedStyle(element); |
| 146 | height += parseInt(style.marginTop) + parseInt(style.marginBottom); |
| 147 | } |
| 148 | return height; |
| 149 | }; |
| 150 | |
| 151 | var outerWidth = function outerWidth(element) { |
| 152 | var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
nothing calls this directly
no outgoing calls
no test coverage detected