LeaVerou/bliss

TypeError: Cannot read property 'handleEvent' of null

pix666 opened this issue · 3 comments

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

Confirmed. This would be a very easy first PR, so I'm gonna mark it as such.

Is this issue still open? I have created a pull request.
Just added an "if(options != null)" check in the bind function.

Any news on that? Would be really nice to see that fixed already.