Skip to content

Commit

Permalink
Chore: Hide and show $el instead of $wrapper to be consistent with `d…
Browse files Browse the repository at this point in the history
…etach` option
  • Loading branch information
vladimirsiljkovic committed Dec 10, 2018
1 parent 5ff5268 commit 4cd3b94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.popupoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
if (options.detach) {
$el.detach();
} else {
$wrapper.hide();
$el.hide();
}
},

Expand Down Expand Up @@ -320,7 +320,7 @@
$wrapper.prepend(el);
$el.show();
} else {
$wrapper.show();
$el.show();
}

opentimer = setTimeout(function() {
Expand Down Expand Up @@ -509,7 +509,7 @@
if (options.detach) {
$el.detach();
} else {
$wrapper.hide();
$el.hide();
}
}

Expand All @@ -533,7 +533,7 @@
if (options.detach) {
$el.detach();
} else {
$wrapper.hide();
$el.hide();
}

// Re-enable scrolling of background layer, if needed
Expand Down

0 comments on commit 4cd3b94

Please sign in to comment.