Permalink
Browse files

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

…rmalink.
  • Loading branch information...
paulirish committed Mar 5, 2012
1 parent e94796f commit 63d7e706a8b64ba8eeb0a930f0194d2d0d7f1479
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/script.js
View
@@ -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() {

0 comments on commit 63d7e70

Please sign in to comment.