title: jQuery Uncaught RangeError: Maximum call stack size exceeded -Jquery
body: <p>I am getting error </p>
  
  <blockquote>
    <p>Uncaught RangeError: Maximum call stack size exceeded</p>
  </blockquote>
  
  <p>my jQuery function:</p>
  
  <pre><code>$('td').click(function () {
          if ($(this).context.id != null &amp;&amp; $(this).context.id != '') {
              foo($('#docId').val(), $(this).attr('id'));
          }
          return false;
      });
  </code></pre>
  
  <p>There are tens of thousands of cells in the page. However, I generally associate stack overflows with recursion and in this case as far as I can see there is none.</p>
  
  <p>Does creating a lambda like this automatically generate a load of stuff on the stack? is there any way round it?</p>