maria
maria copied to clipboard
set models do not need to observe each element for delete
Events bubble. A set model can observe itself for bubbling destroy events. Then check if the original target is a member of the set (not bubbling from deeper in the tree) and remove the item. This will be much simpler than adding and removing destroy listeners on each element in the set.
Same for maria-NodModel plugin.