Skip to content

Commit

Permalink
Workaround for a bug in uglify-js
Browse files Browse the repository at this point in the history
  • Loading branch information
johanblumenberg committed Oct 10, 2018
1 parent 23ff7b7 commit 413bd0c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
15 changes: 7 additions & 8 deletions dist/js/tether.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! tether 1.4.4 */
/*! tether 1.4.5 */

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -1252,14 +1252,7 @@ var TetherClass = (function (_Evented) {
this.options.bodyElement.appendChild(this.element);
}
} else {
var isFullscreenElement = function isFullscreenElement(e) {
var d = e.ownerDocument;
var fe = d.fullscreenElement || d.webkitFullscreenElement || d.mozFullScreenElement || d.msFullscreenElement;
return fe === e;
};

var offsetParentIsBody = true;

var currentNode = this.element.parentNode;
while (currentNode && currentNode.nodeType === 1 && currentNode.tagName !== 'BODY' && !isFullscreenElement(currentNode)) {
if (getComputedStyle(currentNode).position !== 'static') {
Expand Down Expand Up @@ -1302,6 +1295,12 @@ var TetherClass = (function (_Evented) {
return TetherClass;
})(Evented);

function isFullscreenElement(e) {
var d = e.ownerDocument;
var fe = d.fullscreenElement || d.webkitFullscreenElement || d.mozFullScreenElement || d.msFullscreenElement;
return fe === e;
}

TetherClass.modules = [];

TetherBase.position = position;
Expand Down
Loading

0 comments on commit 413bd0c

Please sign in to comment.