title: jquery - pass parameters when using .call()
body: <p>How can you pass parameters to a function when using <code>.call()</code> in Javascript?</p>
  
  <p>When I pass parameters they are always undefined in the callback function</p>
  
  <p>EDIT (an example):</p>
  
  <p>I will have an options object in my plugin:</p>
  
  <pre><code>var options = {
  
  errorCallback : function( errors ) {}
  
  }
  </code></pre>
  
  <p>I will call this from my plugin like this:</p>
  
  <pre><code>var errors = "Test error list";
  configs.errorCallback.call(errors);
  </code></pre>
  
  <p>I will initialise my plugin like this</p>
  
  <pre><code> $('#plugin-element').myPlugin(
         { 
             'errorCallback' : function errorrCallbackFunction( errors ) {
                     console.log(errors) //always undefined
                 }
         }
  </code></pre>