> > If I would re-write part of the classes taking advantage of event > delegation I would have create html first so that I can use css > classes to filter out the elements needed that should receive the > proper events for mousedown/mouseup/dblclick, etc. Correct? The css > classes are required for filtering. >
If you describe all your behavior with delegation, your code is simplified when you need to add elements. You just parse your json into element objects and inject them in the document. All the event delegation logic is written/applied once, when you attach to the container.
