(element)
| 149 | }; |
| 150 | |
| 151 | var outerWidth = function outerWidth(element) { |
| 152 | var withMargin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
| 153 | |
| 154 | var width = element.offsetWidth; |
| 155 | if (withMargin) { |
| 156 | var style = window.getComputedStyle(element); |
| 157 | width += parseInt(style.marginLeft) + parseInt(style.marginRight); |
| 158 | } |
| 159 | return width; |
| 160 | }; |
| 161 | |
| 162 | var position = function position(element) { |
| 163 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected