IE9 memory leak
IE9 memory leak
schoenberg
Posts: 1Questions: 0Answers: 0
With the following code, the datatable produces memory leaks in IE9
[code]
Datatables Test
$(function() {
var table = $("table").dataTable({
aoColumns: [ { sTitle: "DATE" }, { sTitle: "COUNT" } ]
});
$("#table-wrapper").delegate("tr", "mousedown", function() {
alert($(this).text());
});
var count = 0;
var aaData = [];
for (count = 0; count < 1000; count++) {
aaData.push([new Date().toString(), count]);
}
table.fnAddData(aaData);
function update() {
table.fnDeleteRow(500);
table.fnAddData([new Date().toString(), count++]);
setTimeout(update, 10);
}
update();
});
[/code]
[code]
Datatables Test
$(function() {
var table = $("table").dataTable({
aoColumns: [ { sTitle: "DATE" }, { sTitle: "COUNT" } ]
});
$("#table-wrapper").delegate("tr", "mousedown", function() {
alert($(this).text());
});
var count = 0;
var aaData = [];
for (count = 0; count < 1000; count++) {
aaData.push([new Date().toString(), count]);
}
table.fnAddData(aaData);
function update() {
table.fnDeleteRow(500);
table.fnAddData([new Date().toString(), count++]);
setTimeout(update, 10);
}
update();
});
[/code]
This discussion has been closed.