title: Assigning document.getElementById to another function
body: <p>I am trying to do the following in JavaScript:</p>
  
  <pre><code>var gete = document.getElementById;
  </code></pre>
  
  <p>But I am getting the following error (From FireBug's Console):</p>
  
  <p><code>uncaught exception: [Exception... "Illegal operation on WrappedNative prototype object" nsresult: "0x8057000c (NS_ERROR_XPC_BAD_OP_ON_WN_PROTO)" location: "JS frame :: http://localhost:8080/im_ass1/ :: anonymous :: line 15" data: no</code>]</p>
  
  <p>Now obviously I can wrap the function as follows:</p>
  
  <pre><code>var gete = function (id) {
      return document.getElementById(id);
  };
  </code></pre>
  
  <p>But what is the reason I'm getting the above exception when assigning the function to another name?</p>