History

Fix exception in $.scrollParent

Thibaut Courouble committed 9 years ago

Commit 5ce239d1 parent 437eb8d1 file · +1 −1Browse files

Unified · Split

assets/javascripts/lib/util.coffee+1−1
@@ -158,7 +158,7 @@ $.offset = (el, container = document.body) -> · 157 unmodified lines
158 left: left158 left: left
159 159
160$.scrollParent = (el) ->160$.scrollParent = (el) ->
161 while el = el.parentNode161 while el.nodeType is 1 and el = el.parentNode
162 break if el.scrollTop > 0162 break if el.scrollTop > 0
163 break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']163 break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']
164 el164 el