olivernn / davis.js

RESTful degradable JavaScript routing using pushState
http://davisjs.com
532 stars 58 forks source link

Don't perform default action (page load / submit) if default prevented #94

Closed AndiDog closed 5 years ago

AndiDog commented 10 years ago

As of right now, anchors that have an onclick event attached will always fire the Davis route, no matter if the onclick handler returns false or calls event.preventDefault(). Attached change fixes that.

AndiDog commented 5 years ago

Outdated