I am getting error
Uncaught RangeError: Maximum call stack size exceeded
my jQuery function:
$('td').click(function () {
if ($(this).context.id != null && $(this).context.id != '') {
foo($('#docId').val(), $(this).attr('id'));
}
return false;
});
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.
Does creating a lambda like this automatically generate a load of stuff on the stack? is there any way round it?
foois... call stack size exceeded means your function (or some other function like foo) ends up calling itself over and over. If you trigger a click on yourtddown the line for instance. - arbuthnott