This code:
window.addEventListener("test", null, options);
causes a TypeError:
bliss.shy.js:577 Uncaught TypeError: Cannot read property 'handleEvent' of null
at eval (bliss.shy.js:577)
at eval (bliss.shy.js:11)
at Object.$.Element.<computed> (bliss.shy.js:835)
at Function.$.<computed> [as bind] (bliss.shy.js:857)
at EventTarget.addEventListener (bliss._.js:61)
The above code is commonly used for checking for passive option support.
Link: developer.mozilla.org
This code:
causes a TypeError:
The above code is commonly used for checking for
passiveoption support.Link: developer.mozilla.org