Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing error when hash is any linked search that is not an explore pe…

…rmalink.
  • Loading branch information...
commit 63d7e706a8b64ba8eeb0a930f0194d2d0d7f1479 1 parent e94796f
@paulirish paulirish authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/script.js
View
4 js/script.js
@@ -133,8 +133,8 @@ function showsearch(hash) {
featureList.search(hash);
currentActiveHash = document.querySelector('a[href="#' + hash +'"]');
- lastActiveHash && classList(lastActiveHash).remove('active');
- classList(currentActiveHash).add('active');
+ lastActiveHash && classList(lastActiveHash).remove('active');
+ currentActiveHash && classList(currentActiveHash).add('active');
lastActiveHash = currentActiveHash;
repeatscrolling = window.setInterval(function() {
Please sign in to comment.
Something went wrong with that request. Please try again.