GlobeTownDevs / stopwatch

Stopping your watches
0 stars 1 forks source link

Unnecessary preventDefault #7

Closed tbtommyb closed 8 years ago

tbtommyb commented 8 years ago

You don't need to call preventDefault in the handlers because clicking on a button doesn't have any default behaviour. I think you only need to use that for <a> tags that would otherwise take you to a new page.

marisid commented 8 years ago

Oh, right, I didn't know that - thanks. So, it's redundant in our case but it doesn't harm to have it there in case the browser support changes in the future. So, it acts as a 'normalising' rule I guess.