jshint compliance

This commit is contained in:
ansuz
2017-05-18 14:55:16 +02:00
parent 3ba94a1ba2
commit d187945e94
3 changed files with 6 additions and 6 deletions

View File

@@ -103,10 +103,10 @@ Version 1
if (!href) { return ret; }
if (href.slice(-1) !== '/') { href += '/'; }
var idx;
if (!/^https*:\/\//.test(href)) {
var idx = href.indexOf('/#');
idx = href.indexOf('/#');
ret.type = href.slice(1, idx);
ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash);
@@ -118,7 +118,7 @@ Version 1
ret.type = type;
return '';
});
var idx = href.indexOf('/#');
idx = href.indexOf('/#');
ret.hash = href.slice(idx + 2);
ret.hashData = parseTypeHash(ret.type, ret.hash);
return ret;