title: OOJS call other method
body: <pre><code>var Lines = function(startXCon, endXCon,startYCon, endYCon)
  {
  
  
      this.drawCurve = function()
      {
  
  
      }
      this.changeCurve = function(e)
      {
          //how can I call drawCurve from this method
      }
  
  }
  </code></pre>
  
  <p>The comment in my code explains the problem. Is this possible or are all methods private?</p>