title: Javascript recursive function inside a for loop
body: <pre><code>var f_drum_min = function myself(a){
    alert(a);
    $f_min_node.push(a);
      for (i=0;i&lt;=$m;i++){
        if ($f_leg[i][1]==a){
            myself($f_leg[i][0]);
        }
      }  
  };
  </code></pre>
  
  <p><code>myself($f_leg[i][0]);</code> breaks the <code>for</code> loop , how can I make it run multiple times in loop?</p>