Simplify cleanup
This commit is contained in:
parent
9490b2e48c
commit
e68e058e6a
1 changed files with 1 additions and 4 deletions
|
@ -41,10 +41,7 @@ function testSize() {
|
|||
function cleanup() {
|
||||
var persons = org.generic.list();
|
||||
for each (var person in persons) {
|
||||
if (person.groupname)
|
||||
person.get(0).remove();
|
||||
else
|
||||
person.remove();
|
||||
person.remove();
|
||||
}
|
||||
org.remove();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue