Browse Source

Merge branch 'master' into dev

Mr.doob 9 years ago
parent
commit
579d6d96b7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      editor/js/libs/app.js

+ 6 - 1
editor/js/libs/app.js

@@ -247,7 +247,12 @@ var APP = {
 
 
 		this.dispose = function () {
 		this.dispose = function () {
 
 
-			this.dom.removeChild( renderer.domElement );
+			while ( this.dom.children.length ) {
+
+				this.dom.removeChild( this.dom.firstChild );
+
+			}
+
 			renderer.dispose();
 			renderer.dispose();
 
 
 		};
 		};