Skip to content

Commit

Permalink
Chore: ESLint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirsiljkovic committed Dec 10, 2018
1 parent b5b21be commit ede5ead
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions jquery.popupoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @requires jQuery v1.7.1+
* @link http://vast-engineering.github.com/jquery-popup-overlay/
*/
;(function ($) {
;(function ($) { /* eslint-disable-line */

var $window = $(window);
var options = {};
Expand Down Expand Up @@ -210,12 +210,12 @@
options.keepfocus = false;

// Handler: mouseenter, focusin
$(openelement).on('mouseenter', function (event) {
$(openelement).on('mouseenter', function () {
methods.show(el, $(this).data('popup-ordinal'));
});

// Handler: mouseleave, focusout
$(openelement).on('mouseleave', function (event) {
$(openelement).on('mouseleave', function () {
methods.hide(el);
});

Expand Down Expand Up @@ -503,7 +503,7 @@
callback(el, lastclicked[el.id], options.onclose);

if (transitionsupport && $el.css('transition-duration') !== '0s') {
$el.one('transitionend', function(e) {
$el.one('transitionend', function() {

if (!($el.data('popup-visible'))) {
if (options.detach) {
Expand Down Expand Up @@ -584,7 +584,6 @@
var $el = $(el);
var options = $el.data('popupoptions');
var $wrapper = $('#' + el.id + '_wrapper');
var $background = $('#' + el.id + '_background');

ordinal = ordinal || 0;

Expand All @@ -609,7 +608,7 @@
if (options.horizontal == 'right') {
$wrapper.css('left', linkOffset.left + $tooltipanchor.outerWidth() + options.offsetleft);
} else if (options.horizontal == 'leftedge') {
$wrapper.css('left', linkOffset.left + $tooltipanchor.outerWidth() - $tooltipanchor.outerWidth() + options.offsetleft);
$wrapper.css('left', linkOffset.left + options.offsetleft);
} else if (options.horizontal == 'left') {
$wrapper.css('right', $window.width() - linkOffset.left - options.offsetleft);
} else if (options.horizontal == 'rightedge') {
Expand Down Expand Up @@ -854,4 +853,4 @@
closetransitionend: null
};

})(jQuery);
})(jQuery); /* eslint-disable-line */

0 comments on commit ede5ead

Please sign in to comment.