cleaner api / broker wrap

This commit is contained in:
Stewart Allen 2022-01-01 23:48:36 -05:00
commit 116e1b9d9c
3 changed files with 41 additions and 25 deletions

View file

@ -43,7 +43,7 @@ mesh.group = class MeshGroup extends mesh.object {
// @param model {MeshModel}
remove(model) {
// remove all models
// remove all models and group
if (arguments.length === 0) {
for (let m of this.models.slice()) {
this.remove(m);