wix-style-react
Version:
wix-style-react
34 lines (25 loc) • 855 B
JavaScript
;
var _deprecationLog = require('../../utils/deprecationLog');
var _deprecationLog2 = _interopRequireDefault(_deprecationLog);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
(0, _deprecationLog2.default)('Using "RangePolyfill.js" is deprecated. Please use the newer polyfills in "testkit/polyfills"');
if (!document.createRange) {
document.createRange = function () {
return function () {
var pub = {};
pub.setEnd = function (elem) {
pub.commonAncestorContainer = elem;
};
pub.setStart = function (elem) {
pub.commonAncestorContainer = elem;
};
pub.getBoundingClientRect = function () {
return { right: 0 };
};
pub.getClientRects = function () {
return [];
};
return pub;
}();
};
}