jquery reference this from parent
<p>Google is not being helpful trying to find the answer to this question! :(</p>

<p>How do I properly reference <code>this.colour</code> from the parent object from within a jQuery function like this:</p>

<pre><code>var obj = {
 colour: 'blue',
 do: function() {
  $.getJSON('getcolour.php', function(resp) {
    if (resp.colour == this.colour) { //&lt;== this.colour doesnt = blue
     //match
    }
  });
 }
}
</code></pre>
