title: functionName is not a function?
body: <p>I am trying to use a callback function to place data into an array. When i try to call my callback function 'myCallback' i get an error saying <code>TypeError: callbackFunction is not a function</code>. Here is an example of what the code looks like.</p>
  
  <pre><code>var content = [];
  
  var function1 = function(){
    var function2 = function(){
      query = function(){
        //CAML code
      }
      success = function(callbackFunction){
        callbackFunction("text");// TypeError: callbackFunction is not a function
      }
      failure = function(){
        //Error code
      }
    }
    function2();
    runQuery(one, query, success, failure, two);//Main function
  }
  
  function1();
  
  function callbackfunction(data){
    content.push(data)
  }
  </code></pre>
  
  <p>I am following <a href="https://stackoverflow.com/a/2190872/4975671">THIS</a> Stack Overflow answer. Maybe I am getting something confused? Not really sure why it is throwing me the error when it is clearly defined in the code.</p>
  
  <p>Thanks pals.</p>