js: Ignore anchors without href in `events.linkClicked()`
This commit is contained in:
parent
63452ba250
commit
b85360449b
|
@ -269,6 +269,11 @@
|
|||
var linkTarget = $a.attr('target');
|
||||
var $target;
|
||||
var formerUrl;
|
||||
|
||||
if (! href) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (href.match(/^(?:(?:mailto|javascript|data):|[a-z]+:\/\/)/)) {
|
||||
event.stopPropagation();
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue