javascript: function call to itself
<p>I suppose the following code:</p>

<pre><code>jQuery("#mybutton").click(function(){

    //do something

});
</code></pre>

<p>How could I recall to this function "anonymous"?, I can not put a name to this function:</p>

<pre><code>var xfun = function(){

    //do something

}

jQuery("#mybutton").click(xfun);
</code></pre>

<p>I can do something like this:</p>

<pre><code>var working = false;
jQuery("#mybutton").click(function(){

  if (working){
    var _this = this;
    _this._eventType = e.type;
    setTimeout(function() { jQuery(_this).trigger(_this._eventType); }, 200);
    return false;
  }
  //do something

});
</code></pre>

<p>what I need is something like this:</p>

<pre><code>var working = false;
jQuery("#mybutton").click(function(){

  if (working){
    setTimeout( this_function, 200);
    return false;
  }
  //do something

});
</code></pre>

<p>thanks.</p>

<p><strong>EDIT:</strong></p>

<p>Solution:</p>

<pre><code>jQuery("#mybutton").click(function(){
  if (working){
    var fn = arguments.callee;
    var _this = this;
    setTimeout(function(){fn.call(_this);}, 200);
    return false;
  }
  //do something    
});
</code></pre>
