Closed l-cornelius-dol closed 9 years ago
I don't know if this is slightly off topic but have you considered using an immutability library? The idea being that the view is only updated on state change. I did a small update to your fiddle here http://jsfiddle.net/philtoms/obd7q4ox/
Allow a
noredraw
object for event handlers which aren't wrapped in redrawing, or iterateconfig
applying any onxxx attributes in the same way.Event handling is sufficiently tightly bound to a component that avoiding use of
config
is preferable, since, ideally, config should be reserved for unusual use-cases, not common ones.Modify
setAttributes
to add the following code to the if/else setting attributes: