title: jQuery temporary unbinding events
body: <p>Maybe I'm totally missing something about even handling in jQuery, but here's my problem.</p>
  <p>Let's assume there are some event binding, like</p>
  <pre><code>$(element).bind(&quot;mousemove&quot;, somefunc);
  </code></pre>
  <p>Now, I'd like to introduce a new <code>mousemove</code> binding that doesn't override the previous one, but temporarily exclude (unbind) it. In other words, when I bind my function, I must be sure that no other functions will ever execute for that event, until I restore them.</p>
  <p>I'm looking for something like:</p>
  <pre><code>$(element).bind(&quot;mousemove&quot;, somefunc);
  // Somefunc is used regularly
  var savedBinding = $(element).getCurrentBinding(&quot;mousemove&quot;);
  $(element).unbind(&quot;mousemove&quot;).bind(&quot;mousemove&quot;, myfunc);
  // Use myfunc instead
  $(element).unbind(&quot;mousemove&quot;, myfunc).bind(&quot;mousemove&quot;, savedBindings);
  </code></pre>
  <p>Of course, the <code>somefunc</code> is not under my control, or this would be useless :)</p>
  <p>Is my understanding that is possible to bind multiple functions to the same event, and that the execution of those functions can't be pre-determined.
  I'm aware of stopping event propagation and immediate event propagation, but I'm thinking that they are useless in my case, as the execution order can't be determined (but maybe I'm getting these wrong).</p>
  <p>How can I do that?</p>
  <p>EDIT: I need to highlight this: I need that the previously installed handler (<code>somefunc</code>) isn't executed. I am NOT defining that handler, it may be or may be not present, but its installed by a third-party user.</p>
  <p>EDIT2: Ok, this is not feasible right now, I think I'm needing the <code>eventListenerList</code>, which is not implemented in most browsers yet. <a href="http://www.w3.org/TR/2002/WD-DOM-Level-3-Events-20020208/changes.html" rel="nofollow noreferrer">http://www.w3.org/TR/2002/WD-DOM-Level-3-Events-20020208/changes.html</a></p>