Unified · Split
| @@ -157,7 +157,7 @@ $.offset = (el, container = document.body) -> · 156 unmodified lines | |||
| 157 | $.scrollParent = (el) -> | 157 | $.scrollParent = (el) -> |
| 158 | while el = el.parentElement | 158 | while el = el.parentElement |
| 159 | break if el.scrollTop > 0 | 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 | el | 161 | el |
| 162 | 162 | ||
| 163 | $.scrollTo = (el, parent, position = 'center', options = {}) -> | 163 | $.scrollTo = (el, parent, position = 'center', options = {}) -> |