Browse Source

Minor changes to satisfy jscs

pull/721/head
Mike MacMillan 10 years ago
parent
commit
a7dd7f0864
  1. 16
      js/popovers.js

16
js/popovers.js

@ -9,7 +9,8 @@
!(function () { !(function () {
'use strict'; 'use strict';
var popover, listener; var popover;
var listener;
var findPopovers = function (target) { var findPopovers = function (target) {
var i; var i;
@ -24,10 +25,10 @@
} }
}; };
var hidePopover = function() { var hidePopover = function () {
popover.addEventListener('webkitTransitionEnd', (listener = onPopoverHidden)); popover.addEventListener('webkitTransitionEnd', (listener = onPopoverHidden));
popover.classList.remove('visible'); popover.classList.remove('visible');
popover.parentNode.removeChild(backdrop); popover.parentNode.removeChild(backdrop);
}; };
var onPopoverHidden = function () { var onPopoverHidden = function () {
@ -78,8 +79,9 @@
return; return;
} }
if(popover.classList.contains('visible')) if (popover.classList.contains('visible')) {
return hidePopover(); return hidePopover();
}
popover.style.display = 'block'; popover.style.display = 'block';
popover.offsetHeight; popover.offsetHeight;

Loading…
Cancel
Save