Fix close button: Test the anchor if it belongs to us

This commit is contained in:
Marius Hein 2015-02-13 11:45:20 +01:00
parent 9bf8488f68
commit cd11cf3469
1 changed files with 2 additions and 1 deletions

View File

@ -415,7 +415,8 @@
event.preventDefault();
// This is an anchor only
if (href.substr(0, 1) === '#' && href.substr(1, 1) !== '!') {
if (href.substr(0, 1) === '#' && href.length > 1
&& href.substr(1, 1) !== '!') {
self.handleAnchor(href);
return;
}