TypeError: Cannot read property 'handleEvent' of null
pix666 opened this issue · 3 comments
pix666 commented
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
LeaVerou commented
Confirmed. This would be a very easy first PR, so I'm gonna mark it as such.
DudhaneShrey86 commented
Is this issue still open? I have created a pull request.
Just added an "if(options != null)" check in the bind function.
Nervniyak commented
Any news on that? Would be really nice to see that fixed already.