Don't trigger on links with no href as the user is not going to leave the page when clicking them. Bootstrap's datepicker has links with no href for previous and next month navigation; when there are changes to the form and you click one of these links dirtyforms thinks the user is leaving pages.
Merge pull request #66 from slave2zeros/master

Don't trigger when no href included on link