many improvements#2
Conversation
|
@redbow thank you so much for this PR! Looks really good so far (I am still reviewing the code)! One part I'm unsure about though, is the templates. What is the use case for this? From my perspective, I feel it's a bit counter-intuitive (and less readable) when compared with the readability of the other features of |
|
Hey, I thought of that mainly to group many actions together and use them multiple times. Here is a few excerpts from a JSP that I was working on. First is a template with many actions. and here's where i invoke it (for each occurence in a list) the targets that it acts on are just a form in a modal elsewhere in the JSP document. |
Apologies for changing sooo much, but I really loved the idea of this library, and thought I'd contribute the following changes, which is basically most of the code. although I'm pretty sure I've made it API backwards compatible.
no.targetType)immediatelyandtimeoutevent listenersimmediatelywill cause no-js to run an action right after it finishes processing a documenttimeoutwill cause no-js to usewindow.setTimeoutandwindow.setInterval<meta>tags to declare templates of actions and apply them to tags later.