documentcloud/backbone — Issue #825: events and default actions
Author: islandr
Created: 2011-12-27 22:32:12+00:00
State: open

If Backbone is designed to build single-page apps, why aren't default actions on links/forms within views automatically prevented?

Even though links aren't required to have an `href`, I've noticed some browsers mishandling focus when an `href` is missing. Hence the `href="#"` you see in common practice. The problem with `href="#"` though is that it'll force the page to scroll to top unless explicitly prevented.

Does anyone else find all the unnecessary `event.preventDefault()` calls as annoying as I do? Is there a simple solution that I'm overlooking?