Fix exception in $.scrollParent

pull/412/merge
Thibaut Courouble 9 years ago
parent 8340ccf8da
commit 55de422d55

@ -157,7 +157,7 @@ $.offset = (el, container = document.body) ->
$.scrollParent = (el) -> $.scrollParent = (el) ->
while el = el.parentElement while el = el.parentElement
break if el.scrollTop > 0 break if el.scrollTop > 0
break if getComputedStyle(el).overflowY in ['auto', 'scroll'] break if getComputedStyle(el)?.overflowY in ['auto', 'scroll']
el el
$.scrollTo = (el, parent, position = 'center', options = {}) -> $.scrollTo = (el, parent, position = 'center', options = {}) ->

Loading…
Cancel
Save