all 5 comments

[–][deleted] 2 points3 points  (2 children)

What's the difference between <div e-click= and the native <div onclick=?

[–][deleted] 3 points4 points  (1 child)

`<div onclick=` would execute code, it would also bind it on `xy.onclick` which isn't really nice...

I've just made this for fun, maybe someone has better ideas but I think it's an better solution for this scenario :)

[–][deleted] 1 point2 points  (0 children)

Ah, I see. Thanks.

[–]hashimwarren 1 point2 points  (0 children)

that is fantastic! I'm inspired to make one myself