Simplify cleanup

This commit is contained in:
hns 2009-09-18 13:03:53 +00:00
parent 9490b2e48c
commit e68e058e6a

View file

@ -41,10 +41,7 @@ function testSize() {
function cleanup() { function cleanup() {
var persons = org.generic.list(); var persons = org.generic.list();
for each (var person in persons) { for each (var person in persons) {
if (person.groupname) person.remove();
person.get(0).remove();
else
person.remove();
} }
org.remove(); org.remove();
} }