added check for #foo href's to click() and dblclick()