#316 closed enhancement (fixed)
Add ability to have a generic "behavior" function that gets notified via the parser
Reported by: | david | Owned by: | dylan |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | General | Version: | 0.2 |
Keywords: | behavior parser | Cc: | |
Blocked By: | Blocking: |
Description
Something like so:
function sayHi(node, parsedNode) { node.onclick = function() { alert("Hello " + node.getAttribute("username") + "!"); } } parser.addBehavior(function(node) { return node.hasAttibute("username"); }, sayHi);
Change History (3)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Alex already committed something along these lines a few weeks ago.