I'm having trouble with the jquery waypoints plugin:
http://imakewebthings.com/jquery-waypoints/
Whenever I attempt to use this in internet explorer I get an error for my code that only occurs in the IE browser:
Line: 65
Error: Object doesn't support property or method 'waypoint'
Here is the code:
-
-
$('#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.