jaywhy13
04-29-2008, 11:11 PM
Does this "leak"?
function touched() {
/*var args = touched.arguments;
for(var i = 0; i < args.length; i++){
var obj = args[i];
if(!obj) continue;
if(!obj.id)
obj.id = getRandomId(); // give it an id
obj = null;
}
args = null;*/
}
I suspect you will get your "leak" from this since your return version did. If you do, I would conjecture that it is not a leak, or that you have tracked down the wrong function.
function touched() {
/*var args = touched.arguments;
for(var i = 0; i < args.length; i++){
var obj = args[i];
if(!obj) continue;
if(!obj.id)
obj.id = getRandomId(); // give it an id
obj = null;
}
args = null;*/
}
I suspect you will get your "leak" from this since your return version did. If you do, I would conjecture that it is not a leak, or that you have tracked down the wrong function.