nuxodin / web-namespace-registry

A registry for namespaces (prefixes) for custom elements, data attributes, custom attributes and css properties
MIT License
10 stars 9 forks source link

Add custom events "x-event" ? #2

Open nuxodin opened 3 years ago

nuxodin commented 3 years ago

Would it be useful to be able to register for prefixed custom events?

trusktr commented 3 years ago

I was just thinking about this. I was wondering if I should prefix my events? Or not. F.e. with lume-glload vs glload (when GL is Loaded) or lume-modelload vs modelload (when a Model is Loaded).

Also CSS properties. I'm thinking to use --rotation but wondering if --lume-rotation is better or not.

Not sure yet. Need to play with it.

nuxodin commented 3 years ago

I think it makes sense if your framework is meant to run together with other frameworks.