bliss icon indicating copy to clipboard operation
bliss copied to clipboard

TypeError: Cannot read property 'handleEvent' of null

Open pix666 opened this issue 4 years ago • 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

pix666 avatar Jun 18 '20 22:06 pix666

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

LeaVerou avatar Jun 20 '20 17:06 LeaVerou

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

DudhaneShrey86 avatar Nov 28 '20 08:11 DudhaneShrey86

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

Nervniyak avatar Jan 28 '22 11:01 Nervniyak