Calling member function from Javascript constructor
<p>I am running into the following issue which has really got me stumped:</p>

<p>I have </p>

<pre><code>function SystemList(UID)
{
  this.refreshData();
}

SystemList.prototype.refreshData = function()
{
  this.systemDataObj({}, $.proxy(this.readSuccess, this));
}
</code></pre>

<p>When I try and run this, I get the following error: Uncaught TypeError: Object # has no method 'refreshData' within the constructor.</p>

<p>Anyone have an idea why this is failing?  To my eye it looks like it should be working.</p>

<p>Edit:</p>

<p>Example of how I create an instance:</p>

<pre><code>function UserMiniProfile(UID)
{
  this.UID = UID;
  this.systemList = new SystemList(this.UID);
  this.htmlID = 'user-'+this.UID+'-profile';
}
</code></pre>
