Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
41 stars 7 forks source link

"o" event details object not available in conditional statements #344

Closed bob2517 closed 8 months ago

bob2517 commented 8 months ago

This was giving an undefined "o" error:

@if (o.secSelObj.style.backgroundColor == '"cyan") {

Should probably look at doing something more friendly with that event details variable at some point, as using it is not very obvious. The only property I seem to use a fair amount is o.secSelObj to reference the target selector. There's possibly missing syntax in the core. Need to go through and look at all the times I use the o object and see what can be done instead. I won't remove the o object though, as it would be a nightmare to go back and rewrite config if removed.

Fix is now on branch though, and the o object is now available in conditional statements.

bob2517 commented 8 months ago

Closing pending release.

bob2517 commented 8 months ago

Closing pending release.