Unified · Split
| @@ -158,7 +158,7 @@ $.offset = (el, container = document.body) -> · 157 unmodified lines | |||
| 158 | left: left | 158 | left: left |
| 159 | 159 | ||
| 160 | $.scrollParent = (el) -> | 160 | $.scrollParent = (el) -> |
| 161 | while el = el.parentNode | 161 | while el.nodeType is 1 and el = el.parentNode |
| 162 | break if el.scrollTop > 0 | 162 | break if el.scrollTop > 0 |
| 163 | break if getComputedStyle(el)?.overflowY in ['auto', 'scroll'] | 163 | break if getComputedStyle(el)?.overflowY in ['auto', 'scroll'] |
| 164 | el | 164 | el |