Whenever I attempt to use this in internet explorer I get an error for my code that only occurs in the IE browser:
-
- $('#one')
- .waypoint(function(direction) {
- if (direction === 'down') {
- $('a').removeClass("active");
- $('#home').addClass("active");
- $('.fivedown, .fourdown, .threedown, .twodown').css('display', 'none');
- }
- }, { offset: 1 })
- .waypoint(function(direction) {
- if (direction === 'up') {
- $('a').removeClass("active");
- $('#home').addClass("active");
- $('.fivedown, .fourdown, .threedown, .twodown').css('display', 'none');
- }
- }, { offset: -1 });
Edit: I'm not positive, but I think it has something to do with the
function(direction) part.