Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Exposing events on ev-click instead of data-click #21

Closed
Raynos opened this issue Apr 20, 2014 · 2 comments
Closed

Exposing events on ev-click instead of data-click #21

Raynos opened this issue Apr 20, 2014 · 2 comments

Comments

@Raynos
Copy link
Owner

Raynos commented Apr 20, 2014

We could change the way we do events so that we use

ev-click instead of data-click.

This will mean that from a user point of view

h('div', {
  ev-focus: fn,
  data-focus: hook
})

Does not cause collisions. They can use both the elem.focus() hook and the focus event handler through dom-delegator.

Other benefits include that we always know properties in ev-* namespace are event handlers so we can invoke dom-delegator functions directly, this will allow dom-delegator to manage lazy event handlers.

cc @Matt-Esch

@neonstalwart
Copy link
Collaborator

can this be closed now?

@Raynos
Copy link
Owner Author

Raynos commented Jul 14, 2014

yes.

@Raynos Raynos closed this as completed Jul 14, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants