I noticed that these functions don't delete and are stored until I clearVars. Is this normal or should I be doing something to clear them? I tried to destroy the function after I use it but that didn't work.
PHP Code:
function onCreated() {
//this.clearVars(); // Will clear it
temp.fn = function(result) {
printf("Test: %d", result);
};
test(5, 5, fn);
temp.fn.destroy(); // Function function_2107071_1.destroy not found at line 9
echo("Errors: " @ this.scriptErrors);
echo("Useless crap: " @ getStringKeys("this.function").size()); // Goes up everyime script is updated
}
function test(a, b, callback) {
(@ callback)(a + b);
}