Replies: 1 comment 1 reply
-
try function handleClick(e){
e.target.off.click(handleClick);
console.log("CLICKED ONECE");
}
button("click")
.on.click(handleClick) Don't mind, I just wrote randomly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋🏻 Hi! This is a poll on events' naming!
In DLight, setting a event is like this:
And it basically does:
And we're seeing a lot of other frameworks using small camel cases for events' naming conventions like
onClick
oronMouseOver
. But we've got all lower cased event properties in vanilla js likeelement.onclick = clickMe
.It'll both be the same for dlight implementations. So I guess I need your help here. Just vote for your favourite!
5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions