Ignore empty anchors on the same page
Ignore empty anchors on the same page

Trailing (empty) anchors get treated differently and were not ignored
when PJAXing, like other anchor links for the same page.

For links with regular non-empty anchors, link.hash is something like
'#hash' and link.href is just the plain URI without the hash.

For links with an empty anchor (trailing #), link.hash is empty ('') and
link.href contains the original URI with the trailing # in it.

This patch adds some additional logic to catch that second special case.

web-premier/jquery-pjax,cxhan/jquery-pjax,mcanthony/jquery-pjax,javiermadueno/jquery-pjax,dLobatog/jquery-pjax,dLobatog/jquery-pjax,samdark/jquery-pjax,BarefootCoders/jquery-pjax,derekisbusy/jquery-pjax,dLobatog/jquery-pjax,chlorm-forks/jquery-pjax,qiubi8801/jquery-pjax,fashionsun/jquery-pjax,yiisoft/jquery-pjax,javiermadueno/jquery-pjax,quizlet/jquery-pjax,Alex-Code/jquery-pjax,typecode/jquery-pjax,derekisbusy/jquery-pjax,kevinmel2000/jquery-pjax,web-premier/jquery-pjax,web-premier/jquery-pjax,nirunfa/jquery-pjax,rounce/jquery-pjax,defunkt/jquery-pjax,orgsync/jquery-pjax,dLobatog/jquery-pjax,braunrb/jquery-pjax,typecode/jquery-pjax,defunkt/jquery-pjax,aaasayok/jquery-pjax,kevinmel2000/jquery-pjax,quizlet/jquery-pjax,lestatmiao/jquery-pjax,nprdm/jquery-pjax,chlorm-forks/jquery-pjax,ykshao/jquery-pjax,lore-w/jquery-pjax,lore-w/jquery-pjax,freeyiyi1993/jquery-pjax,quizlet/jquery-pjax,nirunfa/jquery-pjax,javiermadueno/jquery-pjax,SamyPesse/jquery-pjax,aaasayok/jquery-pjax,adamclark-dev/jquery-pjax,braunrb/jquery-pjax,duzun/jquery-pjax,yiisoft/jquery-pjax,Priyank57/jquery-pjax,m4h4n/jquery-pjax,pombredanne/jquery-pjax,nirunfa/jquery-pjax,eLobato/jquery-pjax,cxhan/jquery-pjax,Alex-Code/jquery-pjax,qiubi8801/jquery-pjax,quizlet/jquery-pjax,lore-w/jquery-pjax,BarefootCoders/jquery-pjax,admui/jquery-pjax,chlorm-forks/jquery-pjax,fashionsun/jquery-pjax,eLobato/jquery-pjax,cxhan/jquery-pjax,orgsync/jquery-pjax,samdark/jquery-pjax,ykshao/jquery-pjax,Tionx/jquery-pjax,pombredanne/jquery-pjax,najeira/zepto-pjax,nprdm/jquery-pjax,lore-w/jquery-pjax,pombredanne/jquery-pjax,Priyank57/jquery-pjax,elancom/jquery-pjax,Tionx/jquery-pjax,rounce/jquery-pjax,slimsag/jquery-pjax,lestatmiao/jquery-pjax,derekisbusy/jquery-pjax,eLobato/jquery-pjax,duzun/jquery-pjax,elancom/jquery-pjax,slimsag/jquery-pjax,Tionx/jquery-pjax,qiubi8801/jquery-pjax,mcanthony/jquery-pjax,freeyiyi1993/jquery-pjax,m4h4n/jquery-pjax,kevinmel2000/jquery-pjax,SamyPesse/jquery-pjax,m4h4n/jquery-pjax,elancom/jquery-pjax,Tionx/jquery-pjax,Alex-Code/jquery-pjax,adamclark-dev/jquery-pjax,m4h4n/jquery-pjax,pombredanne/jquery-pjax,aaasayok/jquery-pjax,braunrb/jquery-pjax,slimsag/jquery-pjax,yiisoft/jquery-pjax,web-premier/jquery-pjax,slimsag/jquery-pjax,nirunfa/jquery-pjax,elancom/jquery-pjax,npmcomponent/bencevans-jquery-pjax,fashionsun/jquery-pjax,adamclark-dev/jquery-pjax,freeyiyi1993/jquery-pjax,Alex-Code/jquery-pjax,Priyank57/jquery-pjax,SamyPesse/jquery-pjax,aaasayok/jquery-pjax,kevinmel2000/jquery-pjax,lestatmiao/jquery-pjax,javiermadueno/jquery-pjax,mcanthony/jquery-pjax,npmcomponent/bencevans-jquery-pjax,lestatmiao/jquery-pjax,ykshao/jquery-pjax,SamyPesse/jquery-pjax,eLobato/jquery-pjax,duzun/jquery-pjax,adamclark-dev/jquery-pjax,staabm/jquery-pjax,duzun/jquery-pjax,derekisbusy/jquery-pjax,nprdm/jquery-pjax,qiubi8801/jquery-pjax,ykshao/jquery-pjax,freeyiyi1993/jquery-pjax,rounce/jquery-pjax,yiisoft/jquery-pjax,samdark/jquery-pjax,chlorm-forks/jquery-pjax,najeira/zepto-pjax,BarefootCoders/jquery-pjax,rounce/jquery-pjax,cxhan/jquery-pjax,defunkt/jquery-pjax,fashionsun/jquery-pjax,mcanthony/jquery-pjax,staabm/jquery-pjax,Priyank57/jquery-pjax,defunkt/jquery-pjax,BarefootCoders/jquery-pjax,nprdm/jquery-pjax