Skip to content

Commit

Permalink
Editor: Proper App.dispose()
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 25, 2016
1 parent 5f73e14 commit e07f90b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion editor/js/libs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

};
Expand Down

0 comments on commit e07f90b

Please sign in to comment.