function clearFuns() {
var tasks = tree.getList();
for (var i = 0, l = tasks.length; i < l; i++) {
var task = tasks[i];
if (task.functions) {
var funs = tasks[i].functions;
for (var j = 0, k = funs.length; j < k; j++) {
var fun = funs[j];
fun.checked = false;
}
}
}
tree.doUpdate();
}