From a7dd7f08642de0061f63cd947d88226a5b602f3d Mon Sep 17 00:00:00 2001 From: Mike MacMillan Date: Thu, 4 Dec 2014 11:11:08 -0800 Subject: [PATCH] Minor changes to satisfy jscs --- js/popovers.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/popovers.js b/js/popovers.js index d0d9414..0d71644 100644 --- a/js/popovers.js +++ b/js/popovers.js @@ -9,7 +9,8 @@ !(function () { 'use strict'; - var popover, listener; + var popover; + var listener; var findPopovers = function (target) { var i; @@ -24,10 +25,10 @@ } }; - var hidePopover = function() { - popover.addEventListener('webkitTransitionEnd', (listener = onPopoverHidden)); - popover.classList.remove('visible'); - popover.parentNode.removeChild(backdrop); + var hidePopover = function () { + popover.addEventListener('webkitTransitionEnd', (listener = onPopoverHidden)); + popover.classList.remove('visible'); + popover.parentNode.removeChild(backdrop); }; var onPopoverHidden = function () { @@ -78,8 +79,9 @@ return; } - if(popover.classList.contains('visible')) - return hidePopover(); + if (popover.classList.contains('visible')) { + return hidePopover(); + } popover.style.display = 'block'; popover.offsetHeight;