()
| 271 | }; |
| 272 | |
| 273 | var onScroll = function() { |
| 274 | size = getElementSize(element); |
| 275 | dirty = size.width !== lastWidth || size.height !== lastHeight; |
| 276 | |
| 277 | if (dirty && !rafId) { |
| 278 | rafId = requestAnimationFrame(onResized); |
| 279 | } |
| 280 | |
| 281 | reset(); |
| 282 | }; |
| 283 | |
| 284 | var addEvent = function(el, name, cb) { |
| 285 | if (el.attachEvent) { |
nothing calls this directly
no test coverage detected