How do I use bind() properly?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8058862/how-do-i-pass-arguments-to-bound-methods">How do I pass arguments to bound methods</a>  </p>
</blockquote>



<p>How do I use bind() in this instance.
I need to bind a function ...but the code below calls it.  How do I use bind().  I read the MDN documentation but it did not make sense.</p>

<p>bind_enter_key and bind_file_upload are methods i wrote.</p>

<p><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind" rel="nofollow">mdn documentation on bind</a></p>

<pre><code>m5('signin_pass',bind_enter_key(event,interface_signin)); // this does not work
m5('upload_file',bind_file_upload);

// just a minimzer

function m5(a,b)
  {
  return document.getElementById(a).onkeypress=b;
  }
</code></pre>
