How can I unbind all the functions that I previously added to the scroll event?  I want to do this without using the names of the functions.
            Asked
            
        
        
            Active
            
        
            Viewed 136 times
        
    -1
            
            
         
    
    
        georgej
        
- 3,041
- 6
- 24
- 46
2 Answers
1
            
            
        $('#your-element').off('scroll');
 
    
    
        Tyler Biscoe
        
- 2,322
- 3
- 20
- 33
- 
                    Ahh, thanks, @DaniP!! Updated. – Tyler Biscoe Mar 27 '17 at 15:31
- 
                    thanks for the answer, unfortunately that did not unbind any events from the scroll event for me – georgej Mar 27 '17 at 15:54
1
            Use this to unbind everything from scroll event:
$(window).unbind("scroll");
Or substitute specific elements for window if you don't want to unbind everything
 
    
    
        Nate Beers
        
- 1,355
- 2
- 13
- 22