title: Retrieve function parameter from parent function
body: <p>I have a function call in my script that contain a callback function call on a fadeOut call. I'm trying to pass the paren't function parameter into the callback function, but I can't seem to get it working. </p>
  
  <p>The general script structure is:</p>
  
  <pre><code>function aFunction(aVar){
      anElement.fadeOut(200, function(){
          someFunctionCall(aVar);
      });
  }
  </code></pre>
  
  <p>The call is performed correctly, but the variable is not passed. It's probably a scoping issue on the variable but I don't quite understand the concept here.</p>