Exploiting Our Abstraction

We continue our search for Awesome. We finish factoring event-handling logic out of client.js and end up with (to use Alistair Cockburn’s phrase) Screechingly Obvious code. But that’s not all: we also introduce higher-order functions into DomElement, enabling us to eliminate duplication across our DomElement event handlers, too.

comments powered by Disqus