diff --git a/editor/js/libs/app.js b/editor/js/libs/app.js index ae83137d2720773ca7075e000cc97c938ab826e6..dedde6d5a4c65342f25113e5166c4ea58b6cfe41 100644 --- a/editor/js/libs/app.js +++ b/editor/js/libs/app.js @@ -247,7 +247,12 @@ var APP = { this.dispose = function () { - this.dom.removeChild( renderer.domElement ); + while ( this.dom.children.length ) { + + this.dom.removeChild( this.dom.firstChild ); + + } + renderer.dispose(); };