Unified · Split
| @@ -157,7 +157,7 @@ $.offset = (el, container = document.body) -> · 156 unmodified lines | ||
| 157 | 157 | $.scrollParent = (el) -> |
| 158 | 158 | while el = el.parentElement |
| 159 | 159 | break if el.scrollTop > 0 |
| 160 | − break if getComputedStyle(el).overflowY in ['auto', 'scroll'] | |
| 160 | + break if getComputedStyle(el)?.overflowY in ['auto', 'scroll'] | |
| 161 | 161 | el |
| 162 | 162 | |
| 163 | 163 | $.scrollTo = (el, parent, position = 'center', options = {}) -> |