Browse Source

Scene: Move to let/const.

Mugen87 5 years ago
parent
commit
8ce1275452
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/scenes/Scene.js

+ 1 - 1
src/scenes/Scene.js

@@ -51,7 +51,7 @@ Scene.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 
 	toJSON: function ( meta ) {
 	toJSON: function ( meta ) {
 
 
-		var data = Object3D.prototype.toJSON.call( this, meta );
+		const data = Object3D.prototype.toJSON.call( this, meta );
 
 
 		if ( this.background !== null ) data.object.background = this.background.toJSON( meta );
 		if ( this.background !== null ) data.object.background = this.background.toJSON( meta );
 		if ( this.environment !== null ) data.object.environment = this.environment.toJSON( meta );
 		if ( this.environment !== null ) data.object.environment = this.environment.toJSON( meta );