title: How to pass an argument of parent method to it's inner calling methods?
body: <p>I am trying to call a <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">file uploader</a> plugin. When a file is selected, the <code>add</code> method will be called from library. On calling <code>add</code>, I need to pass parent method argument <code>opts</code> with <code>add</code> method as argument.</p>
  
  <p>Here is piece of code using with RequireJS library.</p>
  
  <pre><code> return {            
          onFileChoose: function (e, data) {
              // I need 'opts' object here
          },
          start: function (opts) {
              $('fileupload').fileupload({
                  url: '//testbucket.s3.amazonaws.com', // Grabs form's action src
                  type: 'POST',
                  autoUpload: true,
                  dataType: 'xml', 
                  add: this.onFileChoose
              });
          }
   }
  </code></pre>
  
  <p>I need the <code>opts</code> object in <code>onFileChoose</code>. </p>
  
  <p>I tried with </p>
  
  <pre><code>add: function (e, data) {
      this.onFileChoose(e, data, opts);
  }
  </code></pre>
  
  <p>Above code produces an error as  <code>this.onFileChoose is undefined</code>.</p>
  
  <p>How to solve this issue?</p>