[whatwg/xhr] What with dat code? He not work :( (#91)

    if(optionLocs[index][0] <= scrollTop && scrollTop <= optionLocs[index][1]){
     if(direction == "up"){
      $("#"+id).addClass("active");
      $("#"+optionLocs[index+1][2]).removeClass("active");
     } else if(index > 0) {
      $("#"+id).addClass("active");
      $("#"+optionLocs[index-1][2]).removeClass("active");
     } else if(direction == undefined){
      $("#"+id).addClass("active");
     }
     $.each(optionLocs, function(i){
      if(id != optionLocs[i][2]){
       console.log(i);
       $("#"+optionLocs[i][2]).removeClass("active");
      }
     });
    }
   };


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/91

Received on Friday, 16 September 2016 07:01:34 UTC