title: How to unbind mousemove function
body: <p>When a use moves their mouse on a webpage, I want to track that. Then I want to unbind that listener so that mousemove no longer gets tracked. How can I do that? The code below does not seem to work.</p>
  
  <pre><code>var clearIdleInterval = function () {
                  console.dir('unbind');
                  clearInterval(this.idleInterval);
                  $(document).unbind('mousemove', clearIdleInterval.bind(this));
                  $(document).unbind('keypress', clearIdleInterval.bind(this));
              };
  $(document).bind('mousemove', clearIdleInterval.bind(this));
  $(document).bind('keypress', clearIdleInterval.bind(this));
  </code></pre>