Patternslib/Patterns — pull request #119 by wichert (2012-11-02 09:30:26+00:00)
Title: Depends pattern: support disabling links

The depends pattern has an *enable* action which can be used to disable
elements. This only works on input elements (input/textarea/button), but
not on links. This set of changes supports disabling links by
conditionally registering an event handler which blocks the default
behaviour for a link.