fix: removes
This commit is contained in:
parent
525df7554c
commit
d08475582b
|
@ -65,17 +65,12 @@ export default class Quad {
|
|||
remove(datum) {
|
||||
if (this.hasChildren()) {
|
||||
for (let i = 0; i < 4; ++i) {
|
||||
if (this.quads[i].remove(datum)) {
|
||||
return true;
|
||||
}
|
||||
this.quads[i].remove(datum);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (this.data.has(datum)) {
|
||||
this.data.delete(datum);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
split() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user