quirkey/sammy — pull request #121 by dfunckt (2011-12-16 21:32:49+00:00)
Title: DefaultLocationProxy tries to handle every link on the page

This patch adds a simple check to `DefaultLocationProxy` to ignore events that have `preventDefault` called on them.

This is an issue when attaching event handlers outside the Sammy app to links that trigger gui actions, or use the link's `href` as a fallback for when js is disabled, and there are "greedy" routes (as in `get(/\/$/)` to match the homepage, but will also match any path that ends with a slash).

Currently the only way to accomplish this is to stop the event's propagation, which I think should not be required.