title: Pass a function reference that has a variable as its name
body: <p>I have the following javascript method:</p>
  
  <pre><code>function 123_test_function(){
  
  }
  </code></pre>
  
  <p>The function is generated by java and sent to the client. The 123 is the id of the component so it could change. i.e I can have another function called <code>111_test_function()</code>
  I want to pass this function as a reference.</p>
  
  <p>So I need to create the reference</p>
  
  <pre><code>var 123_test_function = function 123_test_function(){
  
  }
  </code></pre>
  
  <p>In another js file inside an object I have a function that needs to use the 123_test_function reference like so:</p>
  
  <pre><code>useFunction(123_test_function);
  </code></pre>
  
  <p>The problem I'm having is which the <code>123</code> part of the function.
  In this object I have a variable(<code>uniqueID</code>) which has the number at the beginning of the function.
  I need the function call to be something like:</p>
  
  <pre><code>useFunction(uniqueID+"_test_function");
  </code></pre>
  
  <p>This doesn't seem to pass a function instead it passes a string.
  Am I doing something wrong?</p>