fix(link): allow links with no closest method to open

This commit is contained in:
Evan Morikawa 2016-01-21 10:15:22 -08:00
parent d91966c5fb
commit c8305cc04d

View file

@ -150,7 +150,7 @@ class WindowEventHandler
return unless href return unless href
return if currentTarget.closest('.no-open-link-events') return if currentTarget?.closest?('.no-open-link-events')
schema = url.parse(href).protocol schema = url.parse(href).protocol
return unless schema return unless schema