Get parent object within jQuery callbacks
<p>This is my issue:</p>

<pre><code>var greatapp = {
  start : function(){
    $.AJAX({
      url : 'foo.com',
      success : function(data){
        greatapp.say(data);
      }
    })
  },

  say : function(s){
    console.log(s);
  }
}
</code></pre>

<p>What i don't like about this example is the fact that i repeat my self in the <code>success</code> function by defining the object's name instead of just <code>this</code> which obviously won't work because it's in an <em>external</em> function.</p>

<p>How to only have the name <code>greatapp</code> one time in a JS object?</p>
