adding undefined check to hrefEmpty

This commit is contained in:
Julian Lam
2014-07-07 15:57:21 -04:00
parent bc257c1c10
commit 186473fa7b

View File

@@ -253,7 +253,7 @@ var ajaxify = ajaxify || {};
}
function hrefEmpty(href) {
return href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
return href === undefined || href === '' || href === 'javascript:;' || href === window.location.href + "#" || href.slice(-1) === "#";
}
// Enhancing all anchors to ajaxify...