area17 / a17-behaviors

JavaScript framework to attach JavaScript events and interactions to DOM Nodes
MIT License
15 stars 5 forks source link

When in dev how can I see JS errors inside a behavior? #2

Closed mattbloomfield closed 2 years ago

mattbloomfield commented 2 years ago

It's difficult to debug within a behavior. If there is a JS error it simply console logs "No loaded behavior called: xxxxxxx"

Is there a way to expose the errors?

13twelve commented 2 years ago

New version 0.1.11 will console log out any errors when initialising a behavior (latest version is now 0.1.12)

mattbloomfield commented 2 years ago

Oh nice, thanks

mattbloomfield commented 2 years ago

Just tried it out, great implementation! Very descriptive. Thank you Mike.