title: error in running a function
body: <p>I have to delete a shape in canvas. </p>
  
  <p>The following code was written-</p>
  
  <pre><code>  function deleteCircle(circle, propName) {
        for( i = 0; i &lt; circle.length; i++) {
          circle[i].erase();      
        }
      }
     circle.prototype.erase=function() {
        delete this;
      }
  </code></pre>
  
  <p>when i am running this code at i=0 it is going to the erase function. 
  but after the frst delete it is not coming back to deletecircle.
  This is just a rough code... i m just coonfused that after delete this.... that is after the object is deleted doest the code come back to deletecircle ?</p>