diff --git a/js/popovers.js b/js/popovers.js index 04eff62..d0d9414 100644 --- a/js/popovers.js +++ b/js/popovers.js @@ -24,11 +24,11 @@ } }; - var hidePopover = function(e) { + var hidePopover = function() { popover.addEventListener('webkitTransitionEnd', (listener = onPopoverHidden)); popover.classList.remove('visible'); popover.parentNode.removeChild(backdrop); - } + }; var onPopoverHidden = function () { popover.style.display = 'none';