Skip to Content

JavaScript File

URL: https://www.hostboxonline.com/templates/coowhm-plus/js/default-passive-events.js
HTTP Status: 200 OK
MIME Type: text/javascript
Last Modified: Sat, 04 Feb 2023 21:42:03 GMT
Download Time: Less than a second
Cookies: None
Size: 1 KB
HTTP Headers:  22 headers
Links In:  10 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1!function(e){"function"==typeof define&&define.amd?define(e):e()}

2(function(){var e,t=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"];if(function(){var e=!1;try{var t=Object.defineProperty({}

3,"passive",{get:function(){e=!0}

4}

5);window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}

6catch(e){}

7return e}

8()){var n=EventTarget.prototype.addEventListener;e=n,EventTarget.prototype.addEventListener=function(n,o,r){var i,s="object"==typeof r&&null!==r,u=s?r.capture:r;(r=s?function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({}

9,e):e}

10(r):{}

11).passive=void 0!==(i=r.passive)?i:-1!==t.indexOf(n)&&!0,r.capture=void 0!==u&&u,e.call(this,n,o,r)}

12,EventTarget.prototype.addEventListener._original=e}

13}

14);