Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist/vendor
File: wp-polyfill-dom-rect.js
[0] Fix | Delete
// DOMRect
[1] Fix | Delete
(function (global) {
[2] Fix | Delete
function number(v) {
[3] Fix | Delete
return v === undefined ? 0 : Number(v);
[4] Fix | Delete
}
[5] Fix | Delete
[6] Fix | Delete
function different(u, v) {
[7] Fix | Delete
return u !== v && !(isNaN(u) && isNaN(v));
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
function DOMRect(xArg, yArg, wArg, hArg) {
[11] Fix | Delete
var x, y, width, height, left, right, top, bottom;
[12] Fix | Delete
[13] Fix | Delete
x = number(xArg);
[14] Fix | Delete
y = number(yArg);
[15] Fix | Delete
width = number(wArg);
[16] Fix | Delete
height = number(hArg);
[17] Fix | Delete
[18] Fix | Delete
Object.defineProperties(this, {
[19] Fix | Delete
x: {
[20] Fix | Delete
get: function () { return x; },
[21] Fix | Delete
set: function (newX) {
[22] Fix | Delete
if (different(x, newX)) {
[23] Fix | Delete
x = newX;
[24] Fix | Delete
left = right = undefined;
[25] Fix | Delete
}
[26] Fix | Delete
},
[27] Fix | Delete
enumerable: true
[28] Fix | Delete
},
[29] Fix | Delete
y: {
[30] Fix | Delete
get: function () { return y; },
[31] Fix | Delete
set: function (newY) {
[32] Fix | Delete
if (different(y, newY)) {
[33] Fix | Delete
y = newY;
[34] Fix | Delete
top = bottom = undefined;
[35] Fix | Delete
}
[36] Fix | Delete
},
[37] Fix | Delete
enumerable: true
[38] Fix | Delete
},
[39] Fix | Delete
width: {
[40] Fix | Delete
get: function () { return width; },
[41] Fix | Delete
set: function (newWidth) {
[42] Fix | Delete
if (different(width, newWidth)) {
[43] Fix | Delete
width = newWidth;
[44] Fix | Delete
left = right = undefined;
[45] Fix | Delete
}
[46] Fix | Delete
},
[47] Fix | Delete
enumerable: true
[48] Fix | Delete
},
[49] Fix | Delete
height: {
[50] Fix | Delete
get: function () { return height; },
[51] Fix | Delete
set: function (newHeight) {
[52] Fix | Delete
if (different(height, newHeight)) {
[53] Fix | Delete
height = newHeight;
[54] Fix | Delete
top = bottom = undefined;
[55] Fix | Delete
}
[56] Fix | Delete
},
[57] Fix | Delete
enumerable: true
[58] Fix | Delete
},
[59] Fix | Delete
left: {
[60] Fix | Delete
get: function () {
[61] Fix | Delete
if (left === undefined) {
[62] Fix | Delete
left = x + Math.min(0, width);
[63] Fix | Delete
}
[64] Fix | Delete
return left;
[65] Fix | Delete
},
[66] Fix | Delete
enumerable: true
[67] Fix | Delete
},
[68] Fix | Delete
right: {
[69] Fix | Delete
get: function () {
[70] Fix | Delete
if (right === undefined) {
[71] Fix | Delete
right = x + Math.max(0, width);
[72] Fix | Delete
}
[73] Fix | Delete
return right;
[74] Fix | Delete
},
[75] Fix | Delete
enumerable: true
[76] Fix | Delete
},
[77] Fix | Delete
top: {
[78] Fix | Delete
get: function () {
[79] Fix | Delete
if (top === undefined) {
[80] Fix | Delete
top = y + Math.min(0, height);
[81] Fix | Delete
}
[82] Fix | Delete
return top;
[83] Fix | Delete
},
[84] Fix | Delete
enumerable: true
[85] Fix | Delete
},
[86] Fix | Delete
bottom: {
[87] Fix | Delete
get: function () {
[88] Fix | Delete
if (bottom === undefined) {
[89] Fix | Delete
bottom = y + Math.max(0, height);
[90] Fix | Delete
}
[91] Fix | Delete
return bottom;
[92] Fix | Delete
},
[93] Fix | Delete
enumerable: true
[94] Fix | Delete
}
[95] Fix | Delete
});
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
global.DOMRect = DOMRect;
[99] Fix | Delete
}(self));
[100] Fix | Delete
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function