From 55de422d55e514cb48feb2f34355387a0615d867 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 29 May 2016 12:44:51 -0400 Subject: [PATCH] Fix exception in $.scrollParent --- assets/javascripts/lib/util.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/lib/util.coffee b/assets/javascripts/lib/util.coffee index 30f0493e..de7f7077 100644 --- a/assets/javascripts/lib/util.coffee +++ b/assets/javascripts/lib/util.coffee @@ -157,7 +157,7 @@ $.offset = (el, container = document.body) -> $.scrollParent = (el) -> while el = el.parentElement break if el.scrollTop > 0 - break if getComputedStyle(el).overflowY in ['auto', 'scroll'] + break if getComputedStyle(el)?.overflowY in ['auto', 'scroll'] el $.scrollTo = (el, parent, position = 'center', options = {}) ->