Merge "Fix TypeError on <a> with no href"

This commit is contained in:
jenkins-bot 2015-02-17 13:54:57 +00:00 committed by Gerrit Code Review
commit 83cc5ad1ef

View file

@ -144,6 +144,7 @@
// No popup if scrolling or on certain kinds of links.
if (
mw.popups.scrolled || // Prevents hovering on popups while scrolling
!href ||
href.indexOf( '?' ) !== -1 ||
href.indexOf( 'javascript:' ) === 0 || // jshint ignore:line
href.indexOf( location.origin + location.pathname + '#' ) === 0