title: Nested functions have no access to requirejs callback parameters
body: <p>While migrating to requirejs I have run into a problem that I cannot seem to find the answer to.</p>
  
  <p>The problem is that my nested functions do not have access to the parameters passed to the requirejs callback.</p>
  
  <p>for example:</p>
  
  <pre><code>define(['knockout', 'knockoutmapping', 'other'], function(ko, mapping, other) {
    var Something = function() {
       var self = this;
  
       self.items = ko.observableArray([]);
  
       self.doSomeStuff = function(data) {
          // I would think I would still be able to access
          // parameters ko, mapping and other
          // trouble is, I cannot.  I only have 
          // a valid 1st parameter, "ko".
          var d = ko.toJSON(self.items()); // this works fine
          self.items(mapping.fromJS(data));// this does not work (undefined)
          // do not have access to "other" either.
       };
    };
  
    return {
        Something: Something,
    };
  });
  </code></pre>
  
  <p>Any help with this would be appreciated.  I know I could put these into variables in the callback, but that doesn't seem like the correct approach to me.</p>
  
  <p>Thank you in advance.</p>