title: Jquery Scroll() requires 2 Arguments
body: <p>I am trying to remove a class from a menu bar when the user scrolls down a page. I read the following topic and doc to get an idea on jquery scroll():</p>
  
  <p>1) <a href="https://stackoverflow.com/a/16391580/1050957">https://stackoverflow.com/a/16391580/1050957</a></p>
  
  <p>2) <a href="http://api.jquery.com/scroll/" rel="nofollow noreferrer">http://api.jquery.com/scroll/</a></p>
  
  <p>This is my code:</p>
  
  <pre><code>var jquery = jQuery.noConflict();
  
  jquery(document).ready(function(){      
      $(window).scroll(function () {          
          if (document.body.scrollTop &gt; 100) 
                  $('#menuBar').removeClass( "nav-menu" );    
          else
                  // something something              
      });        
  });
  </code></pre>
  
  <p>The above code is an extract from the SO answer from another topic (link given above). But when I add that code, I am seeing: <code>Not enough arguments to Window.scroll.</code> error for <code>$(window).scroll(function ()</code>. I dont know why its expecting 2 arguments since the doc I read on scroll() uses without an argument. Have I done something wrong? Or has something changed with the later version of Jquery?</p>
  
  <p>I am using jquery  v1.11.0</p>