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() {
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue