diff --git a/lib/three/view/view.view.web.ts b/lib/three/view/view.view.web.ts index 887c17e..9cedaa8 100644 --- a/lib/three/view/view.view.web.ts +++ b/lib/three/view/view.view.web.ts @@ -34,7 +34,7 @@ namespace $.$$ { const obj = make() obj.name = name this.scene().add( obj ) - obj.destructor = ()=> this.remove_object( obj ) + ;(obj as any).destructor = ()=> this.remove_object( obj ) return obj }