es6-features icon indicating copy to clipboard operation
es6-features copied to clipboard

Fix uncaught type error on clicking lexical this

Open ryu39 opened this issue 7 years ago • 0 comments

Thank you for nice documents about ES6 features.

I found a slight issue on clicking 'Lexical this' in side menu, please see the following image.

problem

When 'Lexical this' link is clicked, the ev.target does not contain <a> tag element, but <code> tag element under <a> tag. And <code> tag does not have href attribute, so error is occurred.

I fixed this issue by using $(this) instead of $(ev.target). Also the argument ev is not used, so I removed it.

ryu39 avatar Jun 03 '17 14:06 ryu39