title: Calling sibling method after xhr request in custom dojo amd module
body: <p>I have a custom module for dojo's amd that will be something like this:</p>
  
  <pre><code>define(
    "my/moduleName",
    [//dependencies], 
    function(xhr) {
      return {
        method1: function() {
          xhr.get({
            url: "myurl",
            load: function(data) {
              //handle data
              this.method2(data) //&lt; THIS CAUSES ERROR: 'this.method2 is not a function'
            }
          });
        },
  
        method2: function(data) {
          //process data
        }
      }
  }
  </code></pre>
  
  <p>I suspect my problem is that <code>xhr.get</code> creates a deferred object, and <code>method2</code> is not defined in that object but rather on the "my/module" object.   </p>
  
  <p>How can I make the <code>method1</code> call <code>method2</code> AFTER the <code>xhr</code> has completed?</p>