jquery waypoints problem

jquery waypoints problem

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:
  1. $('#one')
  2. .waypoint(function(direction) {
  3. if (direction === 'down') {
  4. $('a').removeClass("active");
  5. $('#home').addClass("active");
  6. $('.fivedown, .fourdown, .threedown, .twodown').css('display', 'none');
  7. }
  8. }, { offset: 1 })
  9. .waypoint(function(direction) {
  10. if (direction === 'up') {
  11. $('a').removeClass("active");
  12. $('#home').addClass("active");
  13. $('.fivedown, .fourdown, .threedown, .twodown').css('display', 'none');
  14. }
  15. }, { offset: -1 });




Edit: I'm not positive, but I think it has something to do with the function(direction) part.