浏览代码

Merge pull request #10140 from TristanVALCKE/example_warning_fix

Example warning fix
Mr.doob 8 年之前
父节点
当前提交
e8ad8091e9
共有 100 个文件被更改,包括 266 次插入266 次删除
  1. 1 1
      examples/css3d_molecules.html
  2. 3 3
      examples/index.html
  3. 2 3
      examples/js/BlendCharacter.js
  4. 3 3
      examples/js/Encodings.js
  5. 3 3
      examples/js/GPUComputationRenderer.js
  6. 18 17
      examples/js/GPUParticleSystem.js
  7. 3 3
      examples/js/MarchingCubes.js
  8. 3 3
      examples/js/Ocean.js
  9. 4 4
      examples/js/RollerCoaster.js
  10. 2 2
      examples/js/SkyShader.js
  11. 2 2
      examples/js/UCSCharacter.js
  12. 2 3
      examples/js/Volume.js
  13. 2 2
      examples/js/VolumeSlice.js
  14. 3 3
      examples/js/animation/MMDPhysics.js
  15. 1 1
      examples/js/controls/DragControls.js
  16. 3 3
      examples/js/controls/EditorControls.js
  17. 1 1
      examples/js/controls/FirstPersonControls.js
  18. 1 1
      examples/js/controls/FlyControls.js
  19. 2 3
      examples/js/controls/MouseControls.js
  20. 1 1
      examples/js/controls/TransformControls.js
  21. 5 5
      examples/js/effects/OutlineEffect.js
  22. 1 1
      examples/js/geometries/DecalGeometry.js
  23. 3 1
      examples/js/geometries/TeapotBufferGeometry.js
  24. 3 3
      examples/js/lights/RectAreaLightUniformsLib.js
  25. 1 1
      examples/js/loaders/3MFLoader.js
  26. 3 3
      examples/js/loaders/AWDLoader.js
  27. 2 2
      examples/js/loaders/AssimpJSONLoader.js
  28. 1 1
      examples/js/loaders/BVHLoader.js
  29. 1 1
      examples/js/loaders/FBXLoader.js
  30. 2 3
      examples/js/loaders/GLTFLoader.js
  31. 1 1
      examples/js/loaders/HDRCubeTextureLoader.js
  32. 1 1
      examples/js/loaders/MD2Loader.js
  33. 12 12
      examples/js/loaders/MMDLoader.js
  34. 1 1
      examples/js/loaders/MTLLoader.js
  35. 1 1
      examples/js/loaders/PCDLoader.js
  36. 14 15
      examples/js/loaders/sea3d/SEA3D.js
  37. 16 16
      examples/js/loaders/sea3d/SEA3DDeflate.js
  38. 3 3
      examples/js/loaders/sea3d/SEA3DLZMA.js
  39. 1 1
      examples/js/loaders/sea3d/SEA3DLegacy.js
  40. 16 16
      examples/js/loaders/sea3d/SEA3DLoader.js
  41. 4 4
      examples/js/modifiers/SimplifyModifier.js
  42. 1 1
      examples/js/nodes/NodeBuilder.js
  43. 2 2
      examples/js/nodes/NodeMaterial.js
  44. 1 1
      examples/js/nodes/materials/StandardNode.js
  45. 1 1
      examples/js/nodes/math/Math3Node.js
  46. 3 3
      examples/js/postprocessing/AdaptiveToneMappingPass.js
  47. 6 6
      examples/js/postprocessing/OutlinePass.js
  48. 1 1
      examples/js/postprocessing/UnrealBloomPass.js
  49. 2 2
      examples/js/renderers/RaytracingRenderer.js
  50. 9 9
      examples/js/renderers/WebGLDeferredRenderer.js
  51. 1 1
      examples/js/shaders/BokehShader2.js
  52. 1 1
      examples/js/shaders/ConvolutionShader.js
  53. 2 2
      examples/js/shaders/EdgeShader.js
  54. 2 2
      examples/js/shaders/EdgeShader2.js
  55. 1 1
      examples/js/shaders/GammaCorrectionShader.js
  56. 2 2
      examples/js/shaders/LuminosityHighPassShader.js
  57. 5 5
      examples/js/shaders/OceanShaders.js
  58. 2 2
      examples/js/shaders/ParallaxShader.js
  59. 1 1
      examples/js/shaders/TechnicolorShader.js
  60. 1 1
      examples/js/utils/ShadowMapViewer.js
  61. 1 1
      examples/js/vr/PaintViveController.js
  62. 1 1
      examples/misc_controls_trackball.html
  63. 1 1
      examples/misc_sound.html
  64. 1 1
      examples/raytracing_sandbox.html
  65. 1 1
      examples/software_sandbox.html
  66. 1 1
      examples/webgl_animation_cloth.html
  67. 2 2
      examples/webgl_animation_skinning_morph.html
  68. 1 1
      examples/webgl_buffergeometry_instancing_interleaved_dynamic.html
  69. 2 2
      examples/webgl_buffergeometry_lines_indexed.html
  70. 1 1
      examples/webgl_camera_logarithmicdepthbuffer.html
  71. 3 2
      examples/webgl_clipping_advanced.html
  72. 1 1
      examples/webgl_custom_attributes.html
  73. 1 1
      examples/webgl_custom_attributes_lines.html
  74. 1 1
      examples/webgl_custom_attributes_points3.html
  75. 4 2
      examples/webgl_decals.html
  76. 1 1
      examples/webgl_depth_texture.html
  77. 2 2
      examples/webgl_effects_anaglyph.html
  78. 3 3
      examples/webgl_effects_parallaxbarrier.html
  79. 2 2
      examples/webgl_effects_stereo.html
  80. 2 2
      examples/webgl_geometry_colors_lookuptable.html
  81. 1 1
      examples/webgl_geometry_extrude_shapes.html
  82. 1 1
      examples/webgl_geometry_extrude_shapes2.html
  83. 1 1
      examples/webgl_geometry_extrude_splines.html
  84. 4 4
      examples/webgl_geometry_spline_editor.html
  85. 1 1
      examples/webgl_gpu_particle_system.html
  86. 5 5
      examples/webgl_interactive_instances_gpu.html
  87. 2 2
      examples/webgl_interactive_points.html
  88. 2 2
      examples/webgl_lights_arealight.html
  89. 2 2
      examples/webgl_lights_physical.html
  90. 1 1
      examples/webgl_lights_pointlights.html
  91. 1 1
      examples/webgl_lights_pointlights2.html
  92. 1 1
      examples/webgl_lines_cubes.html
  93. 0 1
      examples/webgl_loader_bvh.html
  94. 2 2
      examples/webgl_loader_gltf.html
  95. 1 1
      examples/webgl_loader_mmd.html
  96. 8 8
      examples/webgl_loader_mmd_pose.html
  97. 2 2
      examples/webgl_loader_pcd.html
  98. 1 1
      examples/webgl_loader_sea3d.html
  99. 1 1
      examples/webgl_loader_sea3d_hierarchy.html
  100. 1 1
      examples/webgl_loader_sea3d_keyframe.html

+ 1 - 1
examples/css3d_molecules.html

@@ -380,7 +380,7 @@
 
 						}
 
-						colorSprite = colorSpriteMap[ element ];
+						var colorSprite = colorSpriteMap[ element ];
 
 						var atom = document.createElement( 'img' );
 						atom.src = colorSprite;

+ 3 - 3
examples/index.html

@@ -244,7 +244,7 @@
 		<script>
 
 		function extractQuery() {
-			var p = window.location.search.indexOf( '?q=' )
+			var p = window.location.search.indexOf( '?q=' );
 			if( p !== -1 ) {
 				return window.location.search.substr( 3 );
 			}
@@ -383,7 +383,7 @@
 			} else {
 				window.history.replaceState( {} , '', window.location.pathname );
 			}
-			if( selected ) window.location.hash = selected
+			if( selected ) window.location.hash = selected;
 
 			var exp = new RegExp( v, 'gi' );
 
@@ -473,7 +473,7 @@
 
 		}
 
-		filterInput.value = extractQuery()
+		filterInput.value = extractQuery();
 		updateFilter( )
 
 		</script>

+ 2 - 3
examples/js/BlendCharacter.js

@@ -39,7 +39,6 @@ THREE.BlendCharacter = function () {
 			scope.material.skinning = true;
 
 			scope.mixer = new THREE.AnimationMixer( scope );
-			scope.mixer = scope.mixer;
 
 			// Create the animations
 			for ( var i = 0; i < scope.geometry.animations.length; ++ i ) {
@@ -129,7 +128,7 @@ THREE.BlendCharacter = function () {
 
 		return this.mixer.clipAction( animName ).getEffectiveWeight();
 
-	}
+	};
 
 	this.pauseAll = function() {
 
@@ -154,7 +153,7 @@ THREE.BlendCharacter = function () {
 
 		this.visible = boolean;
 
-	}
+	};
 
 };
 

+ 3 - 3
examples/js/Encodings.js

@@ -5,7 +5,7 @@
 
 THREE.Encodings = function() {
   if( THREE.toHalf === undefined ) throw new Error("THREE.Encodings is required for HDRCubeMapLoader when loading half data.");
-}
+};
 
 THREE.Encodings.RGBEByteToRGBFloat = function( sourceArray, sourceOffset, destArray, destOffset ) {
   var e = sourceArray[sourceOffset+3];
@@ -14,7 +14,7 @@ THREE.Encodings.RGBEByteToRGBFloat = function( sourceArray, sourceOffset, destAr
   destArray[destOffset+0] = sourceArray[sourceOffset+0] * scale;
   destArray[destOffset+1] = sourceArray[sourceOffset+1] * scale;
   destArray[destOffset+2] = sourceArray[sourceOffset+2] * scale;
-}
+};
 
 THREE.Encodings.RGBEByteToRGBHalf = function( sourceArray, sourceOffset, destArray, destOffset ) {
   var e = sourceArray[sourceOffset+3];
@@ -23,4 +23,4 @@ THREE.Encodings.RGBEByteToRGBHalf = function( sourceArray, sourceOffset, destArr
   destArray[destOffset+0] = THREE.toHalf( sourceArray[sourceOffset+0] * scale );
   destArray[destOffset+1] = THREE.toHalf( sourceArray[sourceOffset+1] * scale );
   destArray[destOffset+2] = THREE.toHalf( sourceArray[sourceOffset+2] * scale );
-}
+};

+ 3 - 3
examples/js/GPUComputationRenderer.js

@@ -258,7 +258,7 @@ function GPUComputationRenderer( sizeX, sizeY, renderer ) {
 
 		materialShader.defines.resolution = 'vec2( ' + sizeX.toFixed( 1 ) + ', ' + sizeY.toFixed( 1 ) + " )";
 
-	};
+	}
 	this.addResolutionDefine = addResolutionDefine;
 
 
@@ -277,7 +277,7 @@ function GPUComputationRenderer( sizeX, sizeY, renderer ) {
 		addResolutionDefine( material );
 
 		return material;
-	};
+	}
 	this.createShaderMaterial = createShaderMaterial;
 
 	this.createRenderTarget = function( sizeXTexture, sizeYTexture, wrapS, wrapT, minFilter, magFilter ) {
@@ -367,4 +367,4 @@ function GPUComputationRenderer( sizeX, sizeY, renderer ) {
 
 	}
 
-}
+}

+ 18 - 17
examples/js/GPUParticleSystem.js

@@ -200,7 +200,7 @@ THREE.GPUParticleSystem = function(options) {
 
 	self.random = function() {
 		return ++i >= self.rand.length ? self.rand[i = 1] : self.rand[i];
-	}
+	};
 
 	var textureLoader = new THREE.TextureLoader();
 
@@ -252,7 +252,7 @@ THREE.GPUParticleSystem = function(options) {
 
 		}
 
-	}
+	};
 
 	this.spawnParticle = function(options) {
 
@@ -265,7 +265,7 @@ THREE.GPUParticleSystem = function(options) {
 
 		currentContainer.spawnParticle(options);
 
-	}
+	};
 
 	this.update = function(time) {
 		for (var i = 0; i < self.PARTICLE_CONTAINERS; i++) {
@@ -277,7 +277,7 @@ THREE.GPUParticleSystem = function(options) {
 
 	this.init();
 
-}
+};
 
 THREE.GPUParticleSystem.prototype = Object.create(THREE.Object3D.prototype);
 THREE.GPUParticleSystem.prototype.constructor = THREE.GPUParticleSystem;
@@ -299,14 +299,14 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 	THREE.Object3D.apply(this, arguments);
 
 	// construct a couple small arrays used for packing variables into floats etc
-	var UINT8_VIEW = new Uint8Array(4)
-	var FLOAT_VIEW = new Float32Array(UINT8_VIEW.buffer)
+	var UINT8_VIEW = new Uint8Array(4);
+	var FLOAT_VIEW = new Float32Array(UINT8_VIEW.buffer);
 
 	function decodeFloat(x, y, z, w) {
-		UINT8_VIEW[0] = Math.floor(w)
-		UINT8_VIEW[1] = Math.floor(z)
-		UINT8_VIEW[2] = Math.floor(y)
-		UINT8_VIEW[3] = Math.floor(x)
+		UINT8_VIEW[0] = Math.floor(w);
+		UINT8_VIEW[1] = Math.floor(z);
+		UINT8_VIEW[2] = Math.floor(y);
+		UINT8_VIEW[3] = Math.floor(x);
 		return FLOAT_VIEW[0]
 	}
 
@@ -329,7 +329,7 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 		if (b > 0) b--;
 
 		return [r, g, b];
-	};
+	}
 
 	self.particles = [];
 	self.deadParticles = [];
@@ -366,7 +366,7 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 	self.particleShaderGeo.addAttribute('particlePositionsStartTime', new THREE.BufferAttribute(self.particlePositionsStartTime, 4).setDynamic(true));
 	self.particleShaderGeo.addAttribute('particleVelColSizeLife', new THREE.BufferAttribute(self.particleVelColSizeLife, 4).setDynamic(true));
 
-	self.posStart = self.particleShaderGeo.getAttribute('particlePositionsStartTime')
+	self.posStart = self.particleShaderGeo.getAttribute('particlePositionsStartTime');
 	self.velCol = self.particleShaderGeo.getAttribute('particleVelColSizeLife');
 
 	self.particleShaderMat = self.GPUParticleSystem.particleShaderMat;
@@ -388,6 +388,7 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 		lifetime = 0.,
 		size = 0.,
 		sizeRandomness = 0.,
+		smoothPosition = false,
 		i;
 
 	var maxVel = 2;
@@ -409,8 +410,8 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 		turbulence = options.turbulence !== undefined ? options.turbulence : 1.0;
 		lifetime = options.lifetime !== undefined ? options.lifetime : 5.0;
 		size = options.size !== undefined ? options.size : 10;
-		sizeRandomness = options.sizeRandomness !== undefined ? options.sizeRandomness : 0.0,
-			smoothPosition = options.smoothPosition !== undefined ? options.smoothPosition : false;
+		sizeRandomness = options.sizeRandomness !== undefined ? options.sizeRandomness : 0.0;
+		smoothPosition = options.smoothPosition !== undefined ? options.smoothPosition : false;
 
 		if (self.DPR !== undefined) size *= self.DPR;
 
@@ -467,7 +468,7 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 
 		self.particleUpdate = true;
 
-	}
+	};
 
 	this.update = function(time) {
 
@@ -497,11 +498,11 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
 			self.offset = 0;
 			self.count = 0;
 		}
-	}
+	};
 
 	this.init();
 
-}
+};
 
 THREE.GPUParticleContainer.prototype = Object.create(THREE.Object3D.prototype);
 THREE.GPUParticleContainer.prototype.constructor = THREE.GPUParticleContainer;

+ 3 - 3
examples/js/MarchingCubes.js

@@ -412,7 +412,7 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 		}
 
-	};
+	}
 
 	this.begin = function () {
 
@@ -493,8 +493,8 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
 
 		for ( z = min_z; z < max_z; z ++ ) {
 
-			z_offset = this.size2 * z,
-			fz = z / this.size - ballz,
+			z_offset = this.size2 * z;
+			fz = z / this.size - ballz;
 			fz2 = fz * fz;
 
 			for ( y = min_y; y < max_y; y ++ ) {

+ 3 - 3
examples/js/Ocean.js

@@ -31,9 +31,9 @@
 	this.geometrySize = optionalParameter( options.GEOMETRY_SIZE, 2000 );
 	this.resolution = optionalParameter( options.RESOLUTION, 64 );
 	this.floatSize = optionalParameter( options.SIZE_OF_FLOAT, 4 );
-	this.windX = optionalParameter( options.INITIAL_WIND[ 0 ], 10.0 ),
-	this.windY = optionalParameter( options.INITIAL_WIND[ 1 ], 10.0 ),
-	this.size = optionalParameter( options.INITIAL_SIZE, 250.0 ),
+	this.windX = optionalParameter( options.INITIAL_WIND[ 0 ], 10.0 );
+	this.windY = optionalParameter( options.INITIAL_WIND[ 1 ], 10.0 );
+	this.size = optionalParameter( options.INITIAL_SIZE, 250.0 );
 	this.choppiness = optionalParameter( options.INITIAL_CHOPPINESS, 1.5 );
 
 	//

+ 4 - 4
examples/js/RollerCoaster.js

@@ -265,19 +265,19 @@ var RollerCoasterLiftersGeometry = function ( curve, size ) {
 			var point1 = shape[ j ];
 			var point2 = shape[ ( j + 1 ) % jl ];
 
-			vector1.copy( point1 )
+			vector1.copy( point1 );
 			vector1.applyQuaternion( quaternion );
 			vector1.add( fromPoint );
 
-			vector2.copy( point2 )
+			vector2.copy( point2 );
 			vector2.applyQuaternion( quaternion );
 			vector2.add( fromPoint );
 
-			vector3.copy( point2 )
+			vector3.copy( point2 );
 			vector3.applyQuaternion( quaternion );
 			vector3.add( toPoint );
 
-			vector4.copy( point1 )
+			vector4.copy( point1 );
 			vector4.applyQuaternion( quaternion );
 			vector4.add( toPoint );
 

+ 2 - 2
examples/js/SkyShader.js

@@ -98,7 +98,7 @@ THREE.ShaderLib[ 'sky' ] = {
 			// mie coefficients
 			"vBetaM = totalMie(lambda, turbidity) * mieCoefficient;",
 
-		"}",
+		"}"
 
 	].join( "\n" ),
 
@@ -201,7 +201,7 @@ THREE.ShaderLib[ 'sky' ] = {
 			"gl_FragColor.rgb = retColor;",
 
 			"gl_FragColor.a = 1.0;",
-		"}",
+		"}"
 
 	].join( "\n" )
 

+ 2 - 2
examples/js/UCSCharacter.js

@@ -8,8 +8,8 @@ THREE.UCSCharacter = function() {
 
 	this.root = new THREE.Object3D();
 
-	this.numSkins;
-	this.numMorphs;
+	this.numSkins = undefined;
+	this.numMorphs = undefined;
 
 	this.skins = [];
 	this.materials = [];

+ 2 - 3
examples/js/Volume.js

@@ -75,7 +75,6 @@ THREE.Volume = function( xLength, yLength, zLength, type, arrayBuffer ) {
 			case 'uint32' :
 			case 'uint' :
 			case 'unsigned int' :
-			case 'uint32' :
 			case 'uint32_t' :
 				this.data = new Uint32Array( arrayBuffer );
 				break;
@@ -188,7 +187,7 @@ THREE.Volume = function( xLength, yLength, zLength, type, arrayBuffer ) {
 	 * @member {Array} RASDimensions This array holds the dimensions of the volume in the RAS space
 	 */
 
-}
+};
 
 THREE.Volume.prototype = {
 
@@ -445,4 +444,4 @@ THREE.Volume.prototype = {
 
 	}
 
-}
+};

+ 2 - 2
examples/js/VolumeSlice.js

@@ -85,7 +85,7 @@ THREE.VolumeSlice = function( volume, index, axis ) {
 	 */
 
 
-}
+};
 
 THREE.VolumeSlice.prototype = {
 
@@ -214,4 +214,4 @@ THREE.VolumeSlice.prototype = {
 
 	}
 
-}
+};

+ 3 - 3
examples/js/animation/MMDPhysics.js

@@ -634,7 +634,7 @@ THREE.MMDPhysics.ResourceHelper.prototype = {
 		q.setW( w );
 		return q;
 
-	},
+	}
 
 };
 
@@ -678,7 +678,7 @@ THREE.MMDPhysics.RigidBody.prototype = {
 
 			}
 
-		};
+		}
 
 		var helper = this.helper;
 		var params = this.params;
@@ -871,7 +871,7 @@ THREE.MMDPhysics.RigidBody.prototype = {
 
 		thQ.set( q.x(), q.y(), q.z(), q.w() );
 		thQ2.setFromRotationMatrix( this.bone.matrixWorld );
-		thQ2.conjugate()
+		thQ2.conjugate();
 		thQ2.multiply( thQ );
 
 		//this.bone.quaternion.multiply( thQ2 );

+ 1 - 1
examples/js/controls/DragControls.js

@@ -232,4 +232,4 @@ THREE.DragControls = function( _camera, _objects, _domElement ) {
 
 	}
 
-}
+};

+ 3 - 3
examples/js/controls/EditorControls.js

@@ -13,9 +13,9 @@ THREE.EditorControls = function ( object, domElement ) {
 
 	this.enabled = true;
 	this.center = new THREE.Vector3();
-	this.panSpeed = 0.001
-	this.zoomSpeed = 0.001
-	this.rotationSpeed = 0.005
+	this.panSpeed = 0.001;
+	this.zoomSpeed = 0.001;
+	this.rotationSpeed = 0.005;
 
 	// internals
 

+ 1 - 1
examples/js/controls/FirstPersonControls.js

@@ -269,7 +269,7 @@ THREE.FirstPersonControls = function ( object, domElement ) {
 		window.removeEventListener( 'keydown', _onKeyDown, false );
 		window.removeEventListener( 'keyup', _onKeyUp, false );
 
-	}
+	};
 
 	var _onMouseMove = bind( this, this.onMouseMove );
 	var _onMouseDown = bind( this, this.onMouseDown );

+ 1 - 1
examples/js/controls/FlyControls.js

@@ -270,7 +270,7 @@ THREE.FlyControls = function ( object, domElement ) {
 		window.removeEventListener( 'keydown', _keydown, false );
 		window.removeEventListener( 'keyup', _keyup, false );
 
-	}
+	};
 
 	var _mousemove = bind( this, this.mousemove );
 	var _mousedown = bind( this, this.mousedown );

+ 2 - 3
examples/js/controls/MouseControls.js

@@ -36,7 +36,7 @@ THREE.MouseControls = function ( object ) {
 
 	this.orientation = {
 		x: 0,
-		y: 0,
+		y: 0
 	};
 
 	this.update = function() {
@@ -46,7 +46,6 @@ THREE.MouseControls = function ( object ) {
 		mouseQuat.x.setFromAxisAngle( xVector, this.orientation.x );
 		mouseQuat.y.setFromAxisAngle( yVector, this.orientation.y );
 		object.quaternion.copy( mouseQuat.y ).multiply( mouseQuat.x );
-		return;
 
 	};
 
@@ -54,7 +53,7 @@ THREE.MouseControls = function ( object ) {
 
 		document.removeEventListener( 'mousemove', onMouseMove, false );
 
-	}
+	};
 
 	document.addEventListener( 'mousemove', onMouseMove, false );
 

+ 1 - 1
examples/js/controls/TransformControls.js

@@ -444,7 +444,7 @@
 			var group = {
 
 				handles: this[ "handles" ],
-				pickers: this[ "pickers" ],
+				pickers: this[ "pickers" ]
 
 			};
 

+ 5 - 5
examples/js/effects/OutlineEffect.js

@@ -87,7 +87,7 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
 		"	vec4 norm = normalize( pos - pos2 );",
 		"	return pos + norm * thickness * pos.w * ratio;",
 
-		"}",
+		"}"
 
 	].join( "\n" );
 
@@ -110,7 +110,7 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
 		"	gl_Position = calculateOutline( gl_Position, objectNormal, skinned );",
 		"#else",
 		"	gl_Position = calculateOutline( gl_Position, objectNormal, vec4( transformed, 1.0 ) );",
-		"#endif",
+		"#endif"
 
 	].join( "\n" );
 
@@ -128,7 +128,7 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
 
 		"	#include <fog_fragment>",
 
-		"}",
+		"}"
 
 	].join( "\n" );
 
@@ -256,11 +256,11 @@ THREE.OutlineEffect = function ( renderer, parameters ) {
 
 		if ( object.material === undefined ) return;
 
-		var originalMaterial = originalMaterials[ object.material.uuid ]
+		var originalMaterial = originalMaterials[ object.material.uuid ];
 
 		if ( originalMaterial === undefined ) {
 
-			originalMaterial = originalMaterials[ object.uuid ]
+			originalMaterial = originalMaterials[ object.uuid ];
 
 			if ( originalMaterial === undefined ) return;
 

+ 1 - 1
examples/js/geometries/DecalGeometry.js

@@ -88,7 +88,7 @@ THREE.DecalGeometry = function( mesh, position, rotation, dimensions, check ) {
 				}
 				case 1: {
 
-					var nV1, nV2, nV3;
+					var nV1, nV2, nV3, nV4;
 					if ( v1Out ) {
 
 						nV1 = inVertices[ j + 1 ];

+ 3 - 1
examples/js/geometries/TeapotBufferGeometry.js

@@ -481,7 +481,9 @@ THREE.TeapotBufferGeometry = function ( size, segments, bottom, lid, body, fitLi
 	var sstep, tstep;
 	var vertPerRow, eps;
 
-	var s, t, sval, tval, p, dsval, dtval;
+	var s, t, sval, tval, p;
+	var dsval = 0;
+	var dtval = 0;
 
 	var normOut = new THREE.Vector3();
 	var v1, v2, v3, v4;

+ 3 - 3
examples/js/lights/RectAreaLightUniformsLib.js

@@ -45,7 +45,7 @@ Object.assign(THREE.UniformsLib, {
 	ltc_brdf: {
 		"ltcMat": { type: "t", value: THREE.UniformsLib.LTC_MAT_TEXTURE },
 		"ltcMag": { type: "t", value: THREE.UniformsLib.LTC_MAG_TEXTURE }
-	},
+	}
 
 } );
 
@@ -99,7 +99,7 @@ Object.assign(THREE.ShaderLib, {
 				"emissive" : { value: new THREE.Color( 0x000000 ) },
 				"roughness": { value: 0.5 },
 				"metalness": { value: 0 },
-				"envMapIntensity" : { value: 1 }, // temporary
+				"envMapIntensity" : { value: 1 } // temporary
 			}
 
 		),
@@ -107,7 +107,7 @@ Object.assign(THREE.ShaderLib, {
 		vertexShader: THREE.ShaderChunk.meshphysical_vert,
 		fragmentShader: THREE.ShaderChunk.meshphysical_frag
 
-	},
+	}
 
 } );
 

+ 1 - 1
examples/js/loaders/3MFLoader.js

@@ -235,7 +235,7 @@ THREE.ThreeMFLoader.prototype = {
 
 			for ( var i = 0; i < triangleNodes.length; i++ ) {
 
-				triangleNode = triangleNodes[ i ];
+				var triangleNode = triangleNodes[ i ];
 				var v1 = triangleNode.getAttribute( 'v1' );
 				var v2 = triangleNode.getAttribute( 'v2' );
 				var v3 = triangleNode.getAttribute( 'v3' );

+ 3 - 3
examples/js/loaders/AWDLoader.js

@@ -52,7 +52,7 @@
 
 	}
 
-	AWDProperties = function() {}
+	AWDProperties = function() {};
 
 	AWDProperties.prototype = {
 		set : function( key, value ) {
@@ -68,7 +68,7 @@
 			else return fallback;
 
 		}
-	}
+	};
 
 	THREE.AWDLoader = function ( manager ) {
 
@@ -81,7 +81,7 @@
 		this._url     = '';
 		this._baseDir = '';
 
-		this._data;
+		this._data = undefined;
 		this._ptr = 0;
 
 		this._version =  [];

+ 2 - 2
examples/js/loaders/AssimpJSONLoader.js

@@ -122,7 +122,7 @@ THREE.AssimpJSONLoader.prototype = {
 		for ( in_data = json.faces, i = 0, e = in_data.length; i < e; ++ i ) {
 
 			src = in_data[ i ];
-			face = new THREE.Face3( src[ 0 ], src[ 1 ], src[ 2 ] );
+			var face = new THREE.Face3( src[ 0 ], src[ 1 ], src[ 2 ] );
 			geometry.faces.push( face );
 
 		}
@@ -381,5 +381,5 @@ THREE.AssimpJSONLoader.prototype = {
 
 		return obj;
 
-	},
+	}
 };

+ 1 - 1
examples/js/loaders/BVHLoader.js

@@ -116,7 +116,7 @@ THREE.BVHLoader.prototype = {
 			var keyframe = {
 				time: frameTime,
 				position: { x: 0, y: 0, z: 0 },
-				rotation: new THREE.Quaternion(),
+				rotation: new THREE.Quaternion()
 			};
 
 			bone.frames.push( keyframe );

+ 1 - 1
examples/js/loaders/FBXLoader.js

@@ -789,7 +789,7 @@
 
 				// node's property
 				var propExp = new RegExp( "^\\t{" + ( this.currentIndent ) + "}(\\w+):[\\s\\t\\r\\n](.*)" );
-				match = l.match( propExp );
+				var match = l.match( propExp );
 				if ( match ) {
 
 					var propName = match[ 1 ].replace( /^"/, '' ).replace( /"$/, "" ).trim();

+ 2 - 3
examples/js/loaders/GLTFLoader.js

@@ -175,7 +175,7 @@ var GLTFShader = function( targetNode, allNodes ) {
 
 	this._m4 = new THREE.Matrix4();
 
-}
+};
 
 // Update - update all the uniform values
 GLTFShader.prototype.update = function( scene, camera ) {
@@ -274,7 +274,7 @@ GLTFAnimation.prototype.createInterpolators = function( interps ) {
 
 	}
 
-}
+};
 
 // Start/stop
 GLTFAnimation.prototype.play = function() {
@@ -315,7 +315,6 @@ GLTFAnimation.prototype.update = function() {
 
 		}.bind( this ));
 		this.stop();
-		return;
 
 	} else {
 

+ 1 - 1
examples/js/loaders/HDRCubeTextureLoader.js

@@ -9,7 +9,7 @@ THREE.HDRCubeTextureLoader = function (manager) {
   this.hdrLoader = new THREE.RGBELoader();
 
   if( THREE.Encodings === undefined ) throw new Error( "HDRCubeMapLoader requires THREE.Encodings" );
-}
+};
 
 THREE.HDRCubeTextureLoader.prototype.load = function(type, urls, onLoad, onProgress, onError) {
   var texture = new THREE.CubeTexture();

+ 1 - 1
examples/js/loaders/MD2Loader.js

@@ -308,4 +308,4 @@ THREE.MD2Loader.prototype = {
 
 	} )()
 
-}
+};

+ 12 - 12
examples/js/loaders/MMDLoader.js

@@ -144,7 +144,7 @@ THREE.MMDLoader.prototype.loadVmds = function ( urls, callback, onProgress, onEr
 
 		}, onProgress, onError );
 
-	};
+	}
 
 	run();
 
@@ -474,7 +474,7 @@ THREE.MMDLoader.prototype.loadFileAsText = function ( url, onLoad, onProgress, o
 
 THREE.MMDLoader.prototype.loadFileAsShiftJISText = function ( url, onLoad, onProgress, onError ) {
 
-	var request = this.loadFile( url, onLoad, onProgress, onError, 'text', 'text/plain; charset=shift_jis' );
+	this.loadFile( url, onLoad, onProgress, onError, 'text', 'text/plain; charset=shift_jis' );
 
 };
 
@@ -738,7 +738,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 			attribute.array[ index * 3 + 1 ] += v.position[ 1 ] * ratio;
 			attribute.array[ index * 3 + 2 ] += v.position[ 2 ] * ratio;
 
-		};
+		}
 
 		function updateVertices( attribute, m, ratio ) {
 
@@ -762,7 +762,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 			}
 
-		};
+		}
 
 		var morphTargets = [];
 		var attributes = [];
@@ -881,7 +881,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 				} catch ( e ) {
 
-					console.warn( 'THREE.MMDLoader: ' + filePath + ' seems like not right default texture path. Using toon00.bmp instead.' )
+					console.warn( 'THREE.MMDLoader: ' + filePath + ' seems like not right default texture path. Using toon00.bmp instead.' );
 					fullPath = scope.defaultToonTextures[ 0 ];
 
 				}
@@ -930,7 +930,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 			return uuid;
 
-		};
+		}
 
 		function getTexture( name, textures ) {
 
@@ -942,7 +942,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 			return textures[ name ];
 
-		};
+		}
 
 		for ( var i = 0; i < model.metadata.materialCount; i++ ) {
 
@@ -1120,7 +1120,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 							return ctx.getImageData( 0, 0, c.width, c.height );
 
-						};
+						}
 
 						function detectTextureTransparency( image, uvs, indices ) {
 
@@ -1168,7 +1168,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 							return false;
 
-						};
+						}
 
 						/*
 						 * This method expects
@@ -1201,7 +1201,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 							return image.data[ index * 4 + 3 ];
 
-						};
+						}
 
 						var imageData = t.image.data !== undefined ? t.image : createImageData( t.image );
 						var indices = geometry.index.array.slice( m.faceOffset * 3, m.faceOffset * 3 + m.faceNum * 3 );
@@ -1260,7 +1260,7 @@ THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress
 
 					return n.match( /toon(10|0[0-9]).bmp/ ) === null ? false : true;
 
-				};
+				}
 
 				m.outlineParameters = {
 					thickness: p2.edgeFlag === 1 ? 0.003 : 0.0,
@@ -2039,7 +2039,7 @@ THREE.ShaderLib[ 'mmd' ] = {
 		"#define RE_Direct	RE_Direct_BlinnMMD",
 		// ---- MMD specific for toon mapping
 
-		"void main()",
+		"void main()"
 
 	].join( "\n" ) )
 

+ 1 - 1
examples/js/loaders/MTLLoader.js

@@ -473,7 +473,7 @@ THREE.MTLLoader.MaterialCreator.prototype = {
 		var texParams = {
 
 			scale: new THREE.Vector2( 1, 1 ),
-			offset: new THREE.Vector2( 0, 0 ),
+			offset: new THREE.Vector2( 0, 0 )
 
 		 };
 

+ 1 - 1
examples/js/loaders/PCDLoader.js

@@ -100,7 +100,7 @@ Object.assign( THREE.PCDLoader.prototype, THREE.EventDispatcher.prototype, {
 
 		}
 
-		PCDheader.offset = {}
+		PCDheader.offset = {};
 		var sizeSum = 0;
 		for ( var i = 0; i < PCDheader.fields.length; i ++ ) {
 

+ 14 - 15
examples/js/loaders/sea3d/SEA3D.js

@@ -5,7 +5,7 @@
 
 'use strict';
 
-var SEA3D = { VERSION : 18000 }
+var SEA3D = { VERSION : 18000 };
 
 SEA3D.getVersion = function() {
 
@@ -1013,7 +1013,7 @@ SEA3D.Geometry = function( name, data, sea3d ) {
 
 			this.groups.push( {
 				start : len,
-				count : j,
+				count : j
 			} );
 
 			len += j;
@@ -1034,7 +1034,7 @@ SEA3D.Geometry = function( name, data, sea3d ) {
 
 			this.groups.push( {
 				start : j,
-				count : len,
+				count : len
 			} );
 
 			j += len;
@@ -1079,7 +1079,7 @@ SEA3D.GeometryDeltaBase = function( name, data, sea3d ) {
 	else {
 
 		data.readNumber = data.readShort;
-		numDiv = 0xFFFF / 2;
+		this.numDiv = 0xFFFF / 2;
 
 	}
 
@@ -1278,7 +1278,7 @@ SEA3D.GeometryDelta = function( name, data, sea3d ) {
 
 		this.groups.push( {
 			start : j,
-			count : len,
+			count : len
 		} );
 
 		len += j;
@@ -1326,13 +1326,12 @@ SEA3D.GeometryDelta = function( name, data, sea3d ) {
 					vec.push( a );
 
 				}
-				else continue;
 
 			}
 
 			this.groups.push( {
 				start : start,
-				count : vec.length - start,
+				count : vec.length - start
 			} );
 
 		}
@@ -1347,7 +1346,7 @@ SEA3D.GeometryDelta = function( name, data, sea3d ) {
 
 			this.groups.push( {
 				start : j,
-				count : len,
+				count : len
 			} );
 
 			len += j;
@@ -2238,7 +2237,7 @@ SEA3D.Light = function( name, data, sea3d ) {
 
 		var shadowHeader = data.readUByte();
 
-		this.shadow = {}
+		this.shadow = {};
 
 		this.shadow.opacity = shadowHeader & 1 ? data.readFloat() : 1;
 		this.shadow.color = shadowHeader & 2 ? data.readUInt24() : 0x000000;
@@ -2552,8 +2551,8 @@ SEA3D.Material = function( name, data, sea3d ) {
 
 			case SEA3D.Material.AMBIENT_MAP:
 				tech = {
-						texture: sea3d.getObject( data.readUInt() )
-					}
+					texture: sea3d.getObject(data.readUInt())
+				};
 				break;
 
 			case SEA3D.Material.ALPHA_MAP:
@@ -2998,7 +2997,7 @@ SEA3D.CarController.Wheel = function( data, sea3d ) {
 
 	var attrib = data.readUShort();
 
-	this.isFront = ( attrib & 1 ) != 0,
+	this.isFront = ( attrib & 1 ) != 0;
 
 	this.target = sea3d.getObject( data.readUInt() );
 
@@ -3391,7 +3390,7 @@ SEA3D.File = function( config ) {
 };
 
 SEA3D.File.CompressionLibs = {};
-SEA3D.File.DecompressionMethod = {}
+SEA3D.File.DecompressionMethod = {};
 
 SEA3D.File.setDecompressionEngine = function( id, name, method ) {
 
@@ -3749,7 +3748,7 @@ SEA3D.File.prototype.load = function( url ) {
 
 		}
 
-	}
+	};
 
 	xhr.onreadystatechange = function() {
 
@@ -3772,7 +3771,7 @@ SEA3D.File.prototype.load = function( url ) {
 
 		}
 
-	}
+	};
 
 	xhr.send();
 

+ 16 - 16
examples/js/loaders/sea3d/SEA3DDeflate.js

@@ -77,7 +77,7 @@ var zip_border = new Array(  // Order of the bit length code lengths
 var zip_HuftList = function() {
     this.next = null;
     this.list = null;
-}
+};
 
 var zip_HuftNode = function() {
     this.e = 0; // number of extra bits or operation
@@ -86,7 +86,7 @@ var zip_HuftNode = function() {
     // union
     this.n = 0; // literal, length base, or distance base
     this.t = null; // (zip_HuftNode) pointer to next level of table
-}
+};
 
 var zip_HuftBuild = function(b,	// code lengths in bits (all assumed <= BMAX)
 		       n,	// number of codes (assumed <= N_MAX)
@@ -309,7 +309,7 @@ var zip_HuftBuild = function(b,	// code lengths in bits (all assumed <= BMAX)
 	/* Return true (1) if we were given an incomplete table */
 	this.status = ((y != 0 && g != 1) ? 1 : 0);
     } /* end of constructor */
-}
+};
 
 
 /* routines (inflate) */
@@ -318,23 +318,23 @@ var zip_GET_BYTE = function() {
     if(zip_inflate_data.length == zip_inflate_pos)
 	return -1;
 	return zip_inflate_data[zip_inflate_pos++];
-}
+};
 
 var zip_NEEDBITS = function(n) {
     while(zip_bit_len < n) {
 	zip_bit_buf |= zip_GET_BYTE() << zip_bit_len;
 	zip_bit_len += 8;
     }
-}
+};
 
 var zip_GETBITS = function(n) {
     return zip_bit_buf & zip_MASK_BITS[n];
-}
+};
 
 var zip_DUMPBITS = function(n) {
     zip_bit_buf >>= n;
     zip_bit_len -= n;
-}
+};
 
 var zip_inflate_codes = function(buff, off, size) {
     /* inflate (decompress) the codes in a deflated (compressed) block.
@@ -416,7 +416,7 @@ var zip_inflate_codes = function(buff, off, size) {
 
     zip_method = -1; // done
     return n;
-}
+};
 
 var zip_inflate_stored = function(buff, off, size) {
     /* "decompress" an inflated type 0 (stored) block. */
@@ -451,7 +451,7 @@ var zip_inflate_stored = function(buff, off, size) {
     if(zip_copy_leng == 0)
       zip_method = -1; // done
     return n;
-}
+};
 
 var zip_inflate_fixed = function(buff, off, size) {
     /* decompress an inflated type 1 (fixed Huffman codes) block.  We should
@@ -504,7 +504,7 @@ var zip_inflate_fixed = function(buff, off, size) {
     zip_bl = zip_fixed_bl;
     zip_bd = zip_fixed_bd;
     return zip_inflate_codes(buff, off, size);
-}
+};
 
 var zip_inflate_dynamic = function(buff, off, size) {
     // decompress an inflated type 2 (dynamic Huffman codes) block.
@@ -627,7 +627,7 @@ var zip_inflate_dynamic = function(buff, off, size) {
 
     // decompress until an end-of-block code
     return zip_inflate_codes(buff, off, size);
-}
+};
 
 var zip_inflate_start = function() {
     var i;
@@ -641,7 +641,7 @@ var zip_inflate_start = function() {
     zip_eof = false;
     zip_copy_leng = zip_copy_dist = 0;
     zip_tl = null;
-}
+};
 
 var zip_inflate_internal = function(buff, off, size) {
     // decompress an inflated entry
@@ -727,7 +727,7 @@ var zip_inflate_internal = function(buff, off, size) {
 	n += i;
     }
     return n;
-}
+};
 
 var zip_inflate = function(data) {
     var i, j, pos = 0;
@@ -745,7 +745,7 @@ var zip_inflate = function(data) {
 	
     zip_inflate_data = null; // G.C.
     return new Uint8Array(out).buffer;
-}
+};
 
 if (! ctx.RawDeflate) ctx.RawDeflate = {};
 ctx.RawDeflate.inflate = zip_inflate;
@@ -761,6 +761,6 @@ SEA3D.File.DeflateUncompress = function( data ) {
 
 	return RawDeflate.inflate( data );
 
-}
+};
 
-SEA3D.File.setDecompressionEngine( 1, "deflate", SEA3D.File.DeflateUncompress );
+SEA3D.File.setDecompressionEngine( 1, "deflate", SEA3D.File.DeflateUncompress );

+ 3 - 3
examples/js/loaders/sea3d/SEA3DLZMA.js

@@ -577,7 +577,7 @@ SEA3D.File.LZMAUncompress = function( data ) {
 			return this.data[ this.position ++ ];
 
 		}
-	}
+	};
 
 	var outStream = {
 		data: [],
@@ -587,12 +587,12 @@ SEA3D.File.LZMAUncompress = function( data ) {
 			this.data[ this.position ++ ] = value;
 
 		}
-	}
+	};
 
 	LZMA.decompressFile( inStream, outStream );
 
 	return new Uint8Array( outStream.data ).buffer;
 
-}
+};
 
 SEA3D.File.setDecompressionEngine( 2, "lzma", SEA3D.File.LZMAUncompress );

+ 1 - 1
examples/js/loaders/sea3d/SEA3DLegacy.js

@@ -456,7 +456,7 @@ THREE.SEA3D.prototype.readSkeleton = function( sea ) {
 
 		for ( var i = 0; i < sea.joint.length; i ++ ) {
 
-			var bone = sea.joint[ i ]
+			var bone = sea.joint[ i ];
 
 			// get world inverse matrix
 

+ 16 - 16
examples/js/loaders/sea3d/SEA3DLoader.js

@@ -346,31 +346,31 @@ THREE.SEA3D.ScriptDomain = function( domain, root ) {
 
 		return domain.id;
 
-	}
+	};
 
 	this.isRoot = function() {
 
 		return root;
 
-	}
+	};
 
 	this.addEvent = function( type, listener ) {
 
 		events.addEventListener( type, listener );
 
-	}
+	};
 
 	this.hasEvent = function( type, listener ) {
 
 		return events.hasEventListener( type, listener );
 
-	}
+	};
 
 	this.removeEvent = function( type, listener ) {
 
 		events.removeEventListener( type, listener );
 
-	}
+	};
 
 	this.dispatchEvent = function( event ) {
 
@@ -378,7 +378,7 @@ THREE.SEA3D.ScriptDomain = function( domain, root ) {
 
 		events.dispatchEvent( event );
 
-	}
+	};
 
 	this.dispose = function() {
 
@@ -388,7 +388,7 @@ THREE.SEA3D.ScriptDomain = function( domain, root ) {
 
 		this.dispatchEvent( { type : "dispose" } );
 
-	}
+	};
 
 };
 
@@ -412,7 +412,7 @@ THREE.SEA3D.ScriptManager = function() {
 
 		this.scripts.push( src );
 
-	}
+	};
 
 	this.remove = function( src ) {
 
@@ -420,13 +420,13 @@ THREE.SEA3D.ScriptManager = function() {
 
 		this.scripts.splice( this.scripts.indexOf( src ), 1 );
 
-	}
+	};
 
 	this.contains = function( src ) {
 
 		return this.scripts.indexOf( src ) > - 1;
 
-	}
+	};
 
 	this.dispatchEvent = function( event ) {
 
@@ -439,7 +439,7 @@ THREE.SEA3D.ScriptManager = function() {
 
 		}
 
-	}
+	};
 
 };
 
@@ -1120,7 +1120,7 @@ THREE.SEA3D.QUABUF = new THREE.Quaternion();
 
 THREE.SEA3D.prototype.setShadowMap = function( light ) {
 
-	light.shadow.mapSize.width = 2048
+	light.shadow.mapSize.width = 2048;
 	light.shadow.mapSize.height = 1024;
 
 	light.castShadow = true;
@@ -1917,7 +1917,7 @@ THREE.SEA3D.prototype.readCubeMap = function( sea ) {
 
 			}
 
-		}
+		};
 
 		cubeImage.src = this.bufferToTexture( faces[ i ].buffer );
 
@@ -2006,7 +2006,7 @@ THREE.SEA3D.prototype.readJavaScriptMethod = function( sea ) {
 			'hasEvent = $SRC.hasEvent.bind( $SRC ),\n' +
 			'dispatchEvent = $SRC.dispatchEvent.bind( $SRC ),\n' +
 			'removeEvent = $SRC.removeEvent.bind( $SRC ),\n' +
-			'dispose = $SRC.dispose.bind( $SRC );\n'
+			'dispose = $SRC.dispose.bind( $SRC );\n';
 
 		for ( var name in sea.methods ) {
 
@@ -2014,7 +2014,7 @@ THREE.SEA3D.prototype.readJavaScriptMethod = function( sea ) {
 
 		}
 
-		src += 'return $METHOD; })'
+		src += 'return $METHOD; })';
 
 		this.domain.methods = eval( src )();
 
@@ -2046,7 +2046,7 @@ THREE.SEA3D.prototype.readGLSL = function( sea ) {
 THREE.SEA3D.prototype.materialTechnique =
 ( function() {
 
-	var techniques = {}
+	var techniques = {};
 
 	// FINAL
 	techniques.onComplete = function( mat, sea ) {

+ 4 - 4
examples/js/modifiers/SimplifyModifier.js

@@ -134,7 +134,7 @@ THREE.SimplifyModifier = function() {
 		}
 
 		// we average the cost of collapsing at this vertex
-		v.collapseCost = v.totalCost / v.costCount
+		v.collapseCost = v.totalCost / v.costCount;
 		// v.collapseCost = v.minCost;
 
 	}
@@ -349,7 +349,7 @@ THREE.SimplifyModifier = function() {
 
 	Vertex.prototype.addUniqueNeighbor = function( vertex ) {
 		pushIfUnique(this.neighbors, vertex);
-	}
+	};
 
 	Vertex.prototype.removeIfNonNeighbor = function( n ) {
 
@@ -365,7 +365,7 @@ THREE.SimplifyModifier = function() {
 		}
 
 		neighbors.splice( offset, 1 );
-	}
+	};
 
 	THREE.SimplifyModifier.prototype.modify = function( geometry, count ) {
 
@@ -458,4 +458,4 @@ THREE.SimplifyModifier = function() {
 
 		return newGeo;
 	};
-})()
+})();

+ 1 - 1
examples/js/nodes/NodeBuilder.js

@@ -67,7 +67,7 @@ THREE.NodeBuilder.prototype = {
 	addSlot : function( name ) {
 
 		this.slots.push( {
-			name : name || '',
+			name : name || ''
 		} );
 
 		return this.update();

+ 2 - 2
examples/js/nodes/NodeMaterial.js

@@ -41,7 +41,7 @@ THREE.NodeMaterial.addShortcuts = function( proto, prop, list ) {
 			}
 		};
 
-	};
+	}
 
 	return ( function() {
 
@@ -335,7 +335,7 @@ THREE.NodeMaterial.prototype.getVar = function( uuid, type, ns ) {
 		var index = this.vars.length,
 			name = ns ? ns : 'nVv' + index;
 
-		data = { name : name, type : type }
+		data = { name : name, type : type };
 
 		this.vars.push( data );
 		this.vars[ uuid ] = data;

+ 1 - 1
examples/js/nodes/materials/StandardNode.js

@@ -165,7 +165,7 @@ THREE.StandardNode.prototype.build = function( builder ) {
 			THREE.ShaderChunk[ "lights_pars" ],
 			THREE.ShaderChunk[ "lights_physical_pars_fragment" ],
 			THREE.ShaderChunk[ "shadowmap_pars_fragment" ],
-			THREE.ShaderChunk[ "logdepthbuf_pars_fragment" ],
+			THREE.ShaderChunk[ "logdepthbuf_pars_fragment" ]
 		].join( "\n" ) );
 
 		var output = [

+ 1 - 1
examples/js/nodes/math/Math3Node.js

@@ -44,7 +44,7 @@ THREE.Math3Node.prototype.generate = function( builder, output ) {
 	var a, b, c,
 		al = builder.getFormatLength( this.a.getType( builder ) ),
 		bl = builder.getFormatLength( this.b.getType( builder ) ),
-		cl = builder.getFormatLength( this.c.getType( builder ) )
+		cl = builder.getFormatLength( this.c.getType( builder ) );
 
 	// optimzer
 

+ 3 - 3
examples/js/postprocessing/AdaptiveToneMappingPass.js

@@ -44,12 +44,12 @@ THREE.AdaptiveToneMappingPass = function ( adaptive, resolution ) {
 		uniforms: THREE.UniformsUtils.clone( THREE.LuminosityShader.uniforms ),
 		vertexShader: THREE.LuminosityShader.vertexShader,
 		fragmentShader: THREE.LuminosityShader.fragmentShader,
-		blending: THREE.NoBlending,
+		blending: THREE.NoBlending
 	} );
 
 	this.adaptLuminanceShader = {
 		defines: {
-			"MIP_LEVEL_1X1" : ( Math.log( this.resolution ) / Math.log( 2.0 ) ).toFixed( 1 ),
+			"MIP_LEVEL_1X1" : ( Math.log( this.resolution ) / Math.log( 2.0 ) ).toFixed( 1 )
 		},
 		uniforms: {
 			"lastLum": { value: null },
@@ -91,7 +91,7 @@ THREE.AdaptiveToneMappingPass = function ( adaptive, resolution ) {
 				"float fAdaptedLum = fLastLum + (fCurrentLum - fLastLum) * (1.0 - exp(-delta * tau));",
 				// "fAdaptedLum = sqrt(fAdaptedLum);",
 				"gl_FragColor = vec4( vec3( fAdaptedLum ), 1.0 );",
-			"}",
+			"}"
 		].join( '\n' )
 	};
 

+ 6 - 6
examples/js/postprocessing/OutlinePass.js

@@ -145,7 +145,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 			if( object instanceof THREE.Mesh ) {
 				object.visible = bVisible;
 			}
-		}
+		};
 
 		for( var i=0; i<this.selectedObjects.length; i++ ) {
 
@@ -166,7 +166,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 				selectedMeshes.push(object);
 
 			}
-		}
+		};
 
 		for( var i=0; i<this.selectedObjects.length; i++ ) {
 
@@ -198,7 +198,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 					object.bVisible = visibility;
 				}
 			}
-		}
+		};
 		this.renderScene.traverse( VisibilityChangeCallBack );
 	},
 
@@ -259,7 +259,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 		this.tempPulseColor1.copy( this.visibleEdgeColor );
 		this.tempPulseColor2.copy( this.hiddenEdgeColor );
 		if( this.pulsePeriod > 0 ) {
-			var scalar = ( 1 + 0.25 ) / 2 + Math.cos( performance.now() * 0.01/ this.pulsePeriod ) * ( 1.0 - 0.25 )/2
+			var scalar = ( 1 + 0.25 ) / 2 + Math.cos( performance.now() * 0.01/ this.pulsePeriod ) * ( 1.0 - 0.25 )/2;
 			this.tempPulseColor1.multiplyScalar( scalar );
 			this.tempPulseColor2.multiplyScalar( scalar );
 		}
@@ -358,7 +358,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 				"maskTexture": { value: null },
 				"texSize": { value: new THREE.Vector2( 0.5, 0.5 ) },
 				"visibleEdgeColor": { value: new THREE.Vector3( 1.0, 1.0, 1.0 ) },
-				"hiddenEdgeColor":  { value: new THREE.Vector3( 1.0, 1.0, 1.0 ) },
+				"hiddenEdgeColor":  { value: new THREE.Vector3( 1.0, 1.0, 1.0 ) }
 			},
 
 			vertexShader:
@@ -399,7 +399,7 @@ THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
 		return new THREE.ShaderMaterial( {
 
 			defines: {
-				"MAX_RADIUS" : maxRadius,
+				"MAX_RADIUS" : maxRadius
 			},
 
 			uniforms: {

+ 1 - 1
examples/js/postprocessing/UnrealBloomPass.js

@@ -231,7 +231,7 @@ THREE.UnrealBloomPass.prototype = Object.assign( Object.create( THREE.Pass.proto
 			uniforms: {
 				"colorTexture": { value: null },
 				"texSize": 				{ value: new THREE.Vector2( 0.5, 0.5 ) },
-				"direction": 				{ value: new THREE.Vector2( 0.5, 0.5 ) },
+				"direction": 				{ value: new THREE.Vector2( 0.5, 0.5 ) }
 			},
 
 			vertexShader:

+ 2 - 2
examples/js/renderers/RaytracingRenderer.js

@@ -74,7 +74,7 @@ THREE.RaytracingRenderer = function ( parameters ) {
 
 				}
 
-			}
+			};
 
 			worker.color = new THREE.Color().setHSL( Math.random() , 0.8, 0.8 ).getHexString();
 			pool.push( worker );
@@ -195,7 +195,7 @@ THREE.RaytracingRenderer = function ( parameters ) {
 		mirror: 1,
 		reflectivity: 1,
 		refractionRatio: 1,
-		glass: 1,
+		glass: 1
 
 	};
 

+ 9 - 9
examples/js/renderers/WebGLDeferredRenderer.js

@@ -69,8 +69,8 @@ THREE.WebGLDeferredRenderer = function ( parameters ) {
 
 	// external properties
 
-	this.renderer;
-	this.domElement;
+	this.renderer = undefined;
+	this.domElement = undefined;
 
 	this.forwardRendering = false;  // for debug
 
@@ -1474,7 +1474,7 @@ THREE.DeferredShaderChunk = {
 
 		"vec4 packedNormalDepth;",
 		"packedNormalDepth.xyz = normal * 0.5 + 0.5;",
-		"packedNormalDepth.w = position.z / position.w;",
+		"packedNormalDepth.w = position.z / position.w;"
 
 	].join( "\n" ),
 
@@ -1528,7 +1528,7 @@ THREE.DeferredShaderChunk = {
 		"vec3 diffuseColor = float_to_vec3( colorMap.x );",
 		"vec3 emissiveColor = float_to_vec3( colorMap.y );",
 		"vec3 specularColor = float_to_vec3( colorMap.z );",
-		"float shininess = colorMap.w;",
+		"float shininess = colorMap.w;"
 
 	].join( "\n" ),
 
@@ -1536,7 +1536,7 @@ THREE.DeferredShaderChunk = {
 
 		"vec4 packedLight;",
 		"packedLight.xyz = lightIntensity * lightColor * max( dot( lightVector, normal ), 0.0 ) * attenuation;",
-		"packedLight.w = lightIntensity * specular * max( dot( lightVector, normal ), 0.0 ) * attenuation;",
+		"packedLight.w = lightIntensity * specular * max( dot( lightVector, normal ), 0.0 ) * attenuation;"
 
 	].join( "\n" ),
 
@@ -1555,7 +1555,7 @@ THREE.DeferredShaderChunk = {
 
 		"vec3 halfVector = normalize( lightVector - normalize( vertexPositionVS.xyz ) );",
 		"float dotNormalHalf = max( dot( normal, halfVector ), 0.0 );",
-		"float specular = 0.31830988618 * ( shininess * 0.5 + 1.0 ) * pow( dotNormalHalf, shininess );",
+		"float specular = 0.31830988618 * ( shininess * 0.5 + 1.0 ) * pow( dotNormalHalf, shininess );"
 
 	].join( "\n" ),
 
@@ -1964,7 +1964,7 @@ THREE.ShaderDeferred = {
 
 			"}"
 
-		].join( '\n' ),
+		].join( '\n' )
 
 	},
 
@@ -2250,7 +2250,7 @@ THREE.ShaderDeferred = {
 
 			"}"
 
-		].join( '\n' ),
+		].join( '\n' )
 
 	},
 
@@ -2374,4 +2374,4 @@ THREE.ShaderDeferred = {
 
 	}
 
-};
+};

+ 1 - 1
examples/js/shaders/BokehShader2.js

@@ -44,7 +44,7 @@ THREE.BokehShader = {
 		"pentagon": { value: 0 },
 
 		"shaderFocus":  { value: 1 },
-		"focusCoords":  { value: new THREE.Vector2() },
+		"focusCoords":  { value: new THREE.Vector2() }
 
 
 	},

+ 1 - 1
examples/js/shaders/ConvolutionShader.js

@@ -11,7 +11,7 @@ THREE.ConvolutionShader = {
 	defines: {
 
 		"KERNEL_SIZE_FLOAT": "25.0",
-		"KERNEL_SIZE_INT": "25",
+		"KERNEL_SIZE_INT": "25"
 
 	},
 

+ 2 - 2
examples/js/shaders/EdgeShader.js

@@ -12,7 +12,7 @@ THREE.EdgeShader = {
 	uniforms: {
 
 		"tDiffuse": { value: null },
-		"aspect":    { value: new THREE.Vector2( 512, 512 ) },
+		"aspect":    { value: new THREE.Vector2( 512, 512 ) }
 	},
 
 	vertexShader: [
@@ -87,7 +87,7 @@ THREE.EdgeShader = {
 			"float S = (cnv[4] + cnv[5]) + (cnv[6] + cnv[7]) + (cnv[8] + M);",
 
 			"gl_FragColor = vec4(vec3(sqrt(M/S)), 1.0);",
-		"}",
+		"}"
 
 	].join( "\n" )
 };

+ 2 - 2
examples/js/shaders/EdgeShader2.js

@@ -12,7 +12,7 @@ THREE.EdgeShader2 = {
 	uniforms: {
 
 		"tDiffuse": { value: null },
-		"aspect":    { value: new THREE.Vector2( 512, 512 ) },
+		"aspect":    { value: new THREE.Vector2( 512, 512 ) }
 	},
 
 	vertexShader: [
@@ -66,7 +66,7 @@ THREE.EdgeShader2 = {
 			"}",
 
 			"gl_FragColor = vec4(0.5 * sqrt(cnv[0]*cnv[0]+cnv[1]*cnv[1]));",
-		"} ",
+		"} "
 
 	].join( "\n" )
 

+ 1 - 1
examples/js/shaders/GammaCorrectionShader.js

@@ -9,7 +9,7 @@ THREE.GammaCorrectionShader = {
 
 	uniforms: {
 
-		"tDiffuse": { value: null },
+		"tDiffuse": { value: null }
 
 	},
 

+ 2 - 2
examples/js/shaders/LuminosityHighPassShader.js

@@ -15,7 +15,7 @@ THREE.LuminosityHighPassShader = {
 		"luminosityThreshold": { type: "f", value: 1.0 },
 		"smoothWidth": { type: "f", value: 1.0 },
 		"defaultColor": { type: "c", value: new THREE.Color( 0x000000 ) },
-		"defaultOpacity":  { type: "f", value: 0.0 },
+		"defaultOpacity":  { type: "f", value: 0.0 }
 
 	},
 
@@ -56,7 +56,7 @@ THREE.LuminosityHighPassShader = {
 			"float alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );",
 
 			"gl_FragColor = mix( outputColor, texel, alpha );",
-
+
 		"}"
 
 	].join("\n")

+ 5 - 5
examples/js/shaders/OceanShaders.js

@@ -86,7 +86,7 @@ THREE.ShaderLib[ 'ocean_initial_spectrum' ] = {
 	uniforms: {
 		"u_wind": { value: new THREE.Vector2( 10.0, 10.0 ) },
 		"u_resolution": { value: 512.0 },
-		"u_size": { value: 250.0 },
+		"u_size": { value: 250.0 }
 	},
 	fragmentShader: [
 		'precision highp float;',
@@ -163,7 +163,7 @@ THREE.ShaderLib[ 'ocean_phase' ] = {
 		"u_phases": { value: null },
 		"u_deltaTime": { value: null },
 		"u_resolution": { value: null },
-		"u_size": { value: null },
+		"u_size": { value: null }
 	},
 	fragmentShader: [
 		'precision highp float;',
@@ -204,7 +204,7 @@ THREE.ShaderLib[ 'ocean_spectrum' ] = {
 		"u_resolution": { value: null },
 		"u_choppiness": { value: null },
 		"u_phases": { value: null },
-		"u_initialSpectrum": { value: null },
+		"u_initialSpectrum": { value: null }
 	},
 	fragmentShader: [
 		'precision highp float;',
@@ -266,7 +266,7 @@ THREE.ShaderLib[ 'ocean_normals' ] = {
 	uniforms: {
 		"u_displacementMap": { value: null },
 		"u_resolution": { value: null },
-		"u_size": { value: null },
+		"u_size": { value: null }
 	},
 	fragmentShader: [
 		'precision highp float;',
@@ -308,7 +308,7 @@ THREE.ShaderLib[ 'ocean_main' ] = {
 		"u_skyColor": { value: null },
 		"u_oceanColor": { value: null },
 		"u_sunDirection": { value: null },
-		"u_exposure": { value: null },
+		"u_exposure": { value: null }
 	},
 	vertexShader: [
 		'precision highp float;',

+ 2 - 2
examples/js/shaders/ParallaxShader.js

@@ -10,7 +10,7 @@ THREE.ParallaxShader = {
 		basic: 'USE_BASIC_PARALLAX',
 		steep: 'USE_STEEP_PARALLAX',
 		occlusion: 'USE_OCLUSION_PARALLAX', // a.k.a. POM
-		relief: 'USE_RELIEF_PARALLAX',
+		relief: 'USE_RELIEF_PARALLAX'
 	},
 
 	uniforms: {
@@ -177,7 +177,7 @@ THREE.ParallaxShader = {
 			"vec2 mapUv = perturbUv( -vViewPosition, normalize( vNormal ), normalize( vViewPosition ) );",
 			"gl_FragColor = texture2D( map, mapUv );",
 
-		"}",
+		"}"
 
   ].join( "\n" )
 

+ 1 - 1
examples/js/shaders/TechnicolorShader.js

@@ -11,7 +11,7 @@ THREE.TechnicolorShader = {
 
 	uniforms: {
 
-		"tDiffuse": { value: null },
+		"tDiffuse": { value: null }
 
 	},
 

+ 1 - 1
examples/js/utils/ShadowMapViewer.js

@@ -39,7 +39,7 @@ THREE.ShadowMapViewer = function ( light ) {
 		x: 10,
 		y: 10,
 		width: 256,
-		height: 256,
+		height: 256
 	};
 
 	var camera = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2, window.innerHeight / 2, window.innerHeight / - 2, 1, 10 );

+ 1 - 1
examples/js/vr/PaintViveController.js

@@ -52,7 +52,7 @@ THREE.PaintViveController = function ( id ) {
 	mesh.position.set( 0, 0.005, 0.0495 );
 	mesh.rotation.x = - 1.45;
 	mesh.scale.setScalar( 0.02 );
-	this.add( mesh )
+	this.add( mesh );
 
 	var geometry = new THREE.IcosahedronGeometry( 0.1, 2 );
 	var material = new THREE.MeshBasicMaterial();

+ 1 - 1
examples/misc_controls_trackball.html

@@ -34,7 +34,7 @@
 	<body>
 		<div id="container"></div>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank">three.js</a> - trackball controls example</br>
+			<a href="http://threejs.org" target="_blank">three.js</a> - trackball controls example<br />
 			MOVE mouse &amp; press LEFT/A: rotate, MIDDLE/S: zoom, RIGHT/D: pan
 		</div>
 

+ 1 - 1
examples/misc_sound.html

@@ -171,7 +171,7 @@
 				var GeneratorControls = function() {
 					   this.frequency = oscillator.frequency.value;
 					   this.wavetype = oscillator.type;
-				}
+				};
       			var gui = new dat.GUI();
 				var soundControls = new SoundControls();
 				var generatorControls = new GeneratorControls();

+ 1 - 1
examples/raytracing_sandbox.html

@@ -247,7 +247,7 @@
 				info.style.textAlign = 'center';
 				container.appendChild( info );
 
-				updateWorkers()
+				updateWorkers();
 
 				//
 

+ 1 - 1
examples/software_sandbox.html

@@ -104,7 +104,7 @@
 				var points = hilbert3D( new THREE.Vector3( 0,0,0 ), 200.0, 1, 0, 1, 2, 3, 4, 5, 6, 7 );
 				var spline = new THREE.Spline( points );
 				var n_sub = 6, colors = [], line;
-				var lineGeometry = new THREE.Geometry()
+				var lineGeometry = new THREE.Geometry();
 
 				for ( i = 0; i < points.length * n_sub; i ++ ) {
 

+ 1 - 1
examples/webgl_animation_cloth.html

@@ -295,7 +295,7 @@
 
 				window.addEventListener( 'resize', onWindowResize, false );
 
-				sphere.visible = ! true
+				sphere.visible = ! true;
 
 			}
 

+ 2 - 2
examples/webgl_animation_skinning_morph.html

@@ -154,7 +154,7 @@
 				var loader = new THREE.JSONLoader();
 				loader.load( "models/skinned/knight.js", function ( geometry, materials ) {
 
-					createScene( geometry, materials, 0, FLOOR, -300, 60 )
+					createScene( geometry, materials, 0, FLOOR, -300, 60 );
 
 					// GUI
 
@@ -606,7 +606,7 @@
 					folder.add( API, 'uncache clip' );
 					folder.add( API, 'uncache action' );
 
-				}
+				};
 
 				memoryControl( gui, mixer,
 						[ bonesClip, facesClip ], [ mesh, mesh2 ] );

+ 1 - 1
examples/webgl_buffergeometry_instancing_interleaved_dynamic.html

@@ -153,7 +153,7 @@
 			1, -1, 1, 0, 1, 0, 0, 0,
 			-1, -1, 1, 0, 0, 0, 0, 0,
 			1, -1, -1, 0, 1, 1, 0, 0,
-			-1, -1, -1, 0, 0, 1, 0, 0,
+			-1, -1, -1, 0, 0, 1, 0, 0
 		] ), 8 );
 
 		// Use vertexBuffer, starting at offset 0, 3 items in position attribute

+ 2 - 2
examples/webgl_buffergeometry_lines_indexed.html

@@ -158,7 +158,7 @@
 						new THREE.Vector3(0, y+0, 0),
 						new THREE.Vector3(500, y, 0),
 						new THREE.Vector3(500, y+500, 0),
-						new THREE.Vector3(0, y+500, 0),
+						new THREE.Vector3(0, y+500, 0)
 					],
 					true, 600
 				);
@@ -175,7 +175,7 @@
 						new THREE.Vector3(0, y, 0),
 						new THREE.Vector3(250, y+0, 0),
 						new THREE.Vector3(250, y-250, 0),
-						new THREE.Vector3(250, y+0, 0),
+						new THREE.Vector3(250, y+0, 0)
 					],
 					false, 600
 				);

+ 1 - 1
examples/webgl_camera_logarithmicdepthbuffer.html

@@ -205,7 +205,7 @@
 					var labelgeo = new THREE.TextGeometry( labeldata[i].label, {
 						font: font,
 						size: labeldata[i].size,
-						height: labeldata[i].size / 2,
+						height: labeldata[i].size / 2
 					} );
 
 					labelgeo.computeBoundingSphere();

+ 3 - 2
examples/webgl_clipping_advanced.html

@@ -134,10 +134,11 @@
 				],
 
 				Indices = [
-					0, 1, 2,	0, 2, 3,	0, 3, 1,	1, 3, 2 ],
+					0, 1, 2,	0, 2, 3,	0, 3, 1,	1, 3, 2
+				],
 
 				Planes = planesFromMesh( Vertices, Indices ),
-				PlaneMatrices = Planes.map( planeToMatrix );
+				PlaneMatrices = Planes.map( planeToMatrix ),
 
 				GlobalClippingPlanes = cylindricalPlanes( 5, 3.5 ),
 

+ 1 - 1
examples/webgl_custom_attributes.html

@@ -106,7 +106,7 @@
 
 				amplitude: { value: 1.0 },
 				color:     { value: new THREE.Color( 0xff2200 ) },
-				texture:   { value: new THREE.TextureLoader().load( "textures/water.jpg" ) },
+				texture:   { value: new THREE.TextureLoader().load( "textures/water.jpg" ) }
 
 			};
 

+ 1 - 1
examples/webgl_custom_attributes_lines.html

@@ -140,7 +140,7 @@
 			var buffergeometry = new THREE.BufferGeometry();
 
 			var position = new THREE.Float32BufferAttribute( vertices.length * 3, 3 ).copyVector3sArray( vertices );
-			buffergeometry.addAttribute( 'position', position )
+			buffergeometry.addAttribute( 'position', position );
 
 			var displacement = new THREE.Float32BufferAttribute( vertices.length * 3, 3 );
 			buffergeometry.addAttribute( 'displacement', displacement );

+ 1 - 1
examples/webgl_custom_attributes_points3.html

@@ -219,7 +219,7 @@
 				uniforms: {
 					amplitude: { value: 1.0 },
 					color:     { value: new THREE.Color( 0xffffff ) },
-					texture:   { value: texture },
+					texture:   { value: texture }
 				},
 				vertexShader:   document.getElementById( 'vertexshader' ).textContent,
 				fragmentShader: document.getElementById( 'fragmentshader' ).textContent

+ 4 - 2
examples/webgl_decals.html

@@ -20,8 +20,10 @@
 
 		<div id="container"></div>
 		<div id="info">
-			<strong>Decal Splatter</strong><br />
-			Click or tap to shoot.</p>
+			<p>
+				<strong>Decal Splatter</strong><br />
+				Click or tap to shoot.
+			</p>
 		</div>
 
 		<script src="../build/three.js"></script>

+ 1 - 1
examples/webgl_depth_texture.html

@@ -196,7 +196,7 @@
 
         // Setup some geometries
         var geometry = new THREE.TorusKnotGeometry(1, 0.3, 128, 64);
-        var material = new THREE.MeshBasicMaterial({ color: 'blue' })
+        var material = new THREE.MeshBasicMaterial({ color: 'blue' });
 
         var count = 50;
         var scale = 5;

+ 2 - 2
examples/webgl_effects_anaglyph.html

@@ -126,8 +126,8 @@
 
 			function onWindowResize() {
 
-				windowHalfX = window.innerWidth / 2,
-				windowHalfY = window.innerHeight / 2,
+				windowHalfX = window.innerWidth / 2;
+				windowHalfY = window.innerHeight / 2;
 
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();

+ 3 - 3
examples/webgl_effects_parallaxbarrier.html

@@ -313,7 +313,7 @@
 						[ "Bronze", 	mlib[ "Bronze" ] ],
 						[ "Chrome", 	mlib[ "Chrome" ] ]
 
-					],
+					]
 
 				};
 
@@ -354,7 +354,7 @@
 						[ "Bronze", 	mlib[ "Bronze" ] ],
 						[ "Chrome", 	mlib[ "Chrome" ] ]
 
-					],
+					]
 
 				};
 
@@ -414,7 +414,7 @@
 						[ "Bronze", 	mlib[ "Bronze" ] ],
 						[ "Chrome", 	mlib[ "Chrome" ] ]
 
-					],
+					]
 
 				};
 

+ 2 - 2
examples/webgl_effects_stereo.html

@@ -118,8 +118,8 @@
 
 			function onWindowResize() {
 
-				windowHalfX = window.innerWidth / 2,
-				windowHalfY = window.innerHeight / 2,
+				windowHalfX = window.innerWidth / 2;
+				windowHalfY = window.innerHeight / 2;
 
 				camera.aspect = window.innerWidth / window.innerHeight;
 				camera.updateProjectionMatrix();

+ 2 - 2
examples/webgl_geometry_colors_lookuptable.html

@@ -34,8 +34,8 @@
 	<body>
 
 
-		<div id="info"><a href="http://threejs.org" target="_blank">three.js</a> webgl - lookuptable - vertex color values from a range of data values.</br>
-		press A: change color map, press S: change numberOfColors, press D: toggle Legend on/off, press F: change Legend layout</br>
+		<div id="info"><a href="http://threejs.org" target="_blank">three.js</a> webgl - lookuptable - vertex color values from a range of data values.<br />
+		press A: change color map, press S: change numberOfColors, press D: toggle Legend on/off, press F: change Legend layout<br />
 		</div>
 
 		<div id="container"></div>

+ 1 - 1
examples/webgl_geometry_extrude_shapes.html

@@ -165,7 +165,7 @@
 					bevelEnabled	: true,
 					bevelThickness  : 2,
 					bevelSize       : 4,
-					bevelSegments   : 1,
+					bevelSegments   : 1
 				};
 
 				var geometry = new THREE.ExtrudeGeometry( shape, extrudeSettings );

+ 1 - 1
examples/webgl_geometry_extrude_shapes2.html

@@ -292,7 +292,7 @@ var addGeoObject = function( group, svgObject ) {
 		color = new THREE.Color( theColors[i] ); 
 		material = new THREE.MeshLambertMaterial({
 			color: color,
-			emissive: color,
+			emissive: color
 		});
 		amount = theAmounts[i];
 		simpleShapes = path.toShapes(true);

+ 1 - 1
examples/webgl_geometry_extrude_splines.html

@@ -66,7 +66,7 @@
 			new THREE.Vector3( 0, 40, -40 ),
 			new THREE.Vector3( 0, 140, -40 ),
 			new THREE.Vector3( 0, 40, 40 ),
-			new THREE.Vector3( 0, -40, 40 ),
+			new THREE.Vector3( 0, -40, 40 )
 		] );
 
 		sampleClosedSpline.type = 'catmullrom';

+ 4 - 4
examples/webgl_geometry_spline_editor.html

@@ -34,7 +34,7 @@
 				}
 				return str;
 
-			}
+			};
 
 			var container, stats;
 			var camera, scene, renderer;
@@ -172,13 +172,13 @@
 					transformControl.attach( e.object );
 					cancelHideTransorm(); // *
 
-				} )
+				} );
 
 				dragcontrols.on( 'hoveroff', function( e ) {
 
 					if ( e ) delayHideTransform();
 
-				} )
+				} );
 
 
 				controls.addEventListener( 'start', function() {
@@ -304,7 +304,7 @@
 				} else {
 
 					object.position.x = Math.random() * 1000 - 500;
-					object.position.y = Math.random() * 600
+					object.position.y = Math.random() * 600;
 					object.position.z = Math.random() * 800 - 400;
 
 				}

+ 1 - 1
examples/webgl_gpu_particle_system.html

@@ -80,7 +80,7 @@
 				horizontalSpeed: 1.5,
 				verticalSpeed: 1.33,
 				timeScale: 1
-			}
+			};
 
 			gui.add(options, "velocityRandomness", 0, 3);
 			gui.add(options, "positionRandomness", 0, 3);

+ 5 - 5
examples/webgl_interactive_instances_gpu.html

@@ -551,7 +551,7 @@
 				fragmentShader: frag,
 				uniforms: {
 					color: {
-						value: new THREE.Color(),
+						value: new THREE.Color()
 					}
 				}
 			} );
@@ -561,7 +561,7 @@
 				fragmentShader: "#define PICKING\n" + frag,
 				uniforms: {
 					pickingColor: {
-						value: new THREE.Color(),
+						value: new THREE.Color()
 					}
 				}
 			} );
@@ -695,13 +695,13 @@
 
 			var material = new THREE.RawShaderMaterial( {
 				vertexShader: vert,
-				fragmentShader: frag,
+				fragmentShader: frag
 			} );
 			materialList.push( material );
 
 			var pickingMaterial = new THREE.RawShaderMaterial( {
 				vertexShader: "#define PICKING\n" + vert,
-				fragmentShader: "#define PICKING\n" + frag,
+				fragmentShader: "#define PICKING\n" + frag
 			} );
 			materialList.push( pickingMaterial );
 
@@ -794,7 +794,7 @@
 
 			var pickingMaterial = new THREE.RawShaderMaterial( {
 				vertexShader: "#define PICKING\n" + vert,
-				fragmentShader: "#define PICKING\n" + frag,
+				fragmentShader: "#define PICKING\n" + frag
 			} );
 			materialList.push( pickingMaterial );
 

+ 2 - 2
examples/webgl_interactive_points.html

@@ -119,7 +119,7 @@
 					vertex = vertices[ i ];
 					vertex.toArray( positions, i * 3 );
 
-					color.setHSL( 0.01 + 0.1 * ( i / l ), 1.0, 0.5 )
+					color.setHSL( 0.01 + 0.1 * ( i / l ), 1.0, 0.5 );
 					color.toArray( colors, i * 3 );
 
 					sizes[ i ] = PARTICLE_SIZE * 0.5;
@@ -142,7 +142,7 @@
 					vertexShader: document.getElementById( 'vertexshader' ).textContent,
 					fragmentShader: document.getElementById( 'fragmentshader' ).textContent,
 
-					alphaTest: 0.9,
+					alphaTest: 0.9
 
 				} );
 

+ 2 - 2
examples/webgl_lights_arealight.html

@@ -61,7 +61,7 @@
 			var matParams = {
 				specular: 0xFFFFFF,
 				shininess: 10000
-			}
+			};
 
 			var matFloor = new THREE.MeshPhongMaterial( matParams );
 			var matBox = new THREE.MeshPhongMaterial( matParams );
@@ -263,7 +263,7 @@
 					intensity: rectLight.intensity,
 					width: rectLight.width,
 					height: rectLight.height,
-					shininess: matFloor.shininess,
+					shininess: matFloor.shininess
 					// shape: shapeNames[0]
 				};
 

+ 2 - 2
examples/webgl_lights_physical.html

@@ -80,7 +80,7 @@
 				"400 lx (Sunrise/Sunset)": 400,
 				"1000 lx (Overcast)": 1000,
 				"18000 lx (Daylight)": 18000,
-				"50000 lx (Direct Sun)": 50000,
+				"50000 lx (Direct Sun)": 50000
 			};
 
 			var params = {
@@ -131,7 +131,7 @@
 					roughness: 0.8,
 					color: 0xffffff,
 					metalness: 0.2,
-					bumpScale: 0.0005,
+					bumpScale: 0.0005
 				});
 				var textureLoader = new THREE.TextureLoader();
 				textureLoader.load( "textures/hardwood2_diffuse.jpg", function( map ) {

+ 1 - 1
examples/webgl_lights_pointlights.html

@@ -50,7 +50,7 @@
 			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
 
 			var camera, scene, renderer,
-			particle1, particle2, particle2,
+			particle1, particle2,
 			light1, light2, light3, light4,
 			object, loader;
 

+ 1 - 1
examples/webgl_lights_pointlights2.html

@@ -50,7 +50,7 @@
 			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
 
 			var camera, scene, renderer, controls,
-			particle1, particle2, particle4, particle4, particle5, particle6,
+			particle1, particle2, particle4, particle5, particle6,
 			light1, light2, light3, light4, light5, light6;
 
 			var FAR = 300;

+ 1 - 1
examples/webgl_lines_cubes.html

@@ -104,7 +104,7 @@
 
 								   [ m1, scale*0.5, [2*d, 0, 0],  g1 ], [ m1, scale*0.5, [-2*d, 0, 0],  g1 ],
 								   [ m1, scale*0.5, [2*d, d, 0],  g1 ], [ m1, scale*0.5, [-2*d, d, 0],  g1 ],
-								   [ m1, scale*0.5, [2*d, -d, 0], g1 ], [ m1, scale*0.5, [-2*d, -d, 0], g1 ],
+								   [ m1, scale*0.5, [2*d, -d, 0], g1 ], [ m1, scale*0.5, [-2*d, -d, 0], g1 ]
 								   ];
 
 				for ( i = 0; i < parameters.length; i ++ ) {

+ 0 - 1
examples/webgl_loader_bvh.html

@@ -21,7 +21,6 @@
 				text-align: center;
 				color: #000000;
 			}
-}
 		</style>
 
 	</head>

+ 2 - 2
examples/webgl_loader_gltf.html

@@ -92,7 +92,7 @@
 		<div id="info">
 		<a href="http://threejs.org" target="_blank">three.js</a> -
 		<a href="https://github.com/KhronosGroup/glTF" target="_blank">glTF</a> loader -
-		<br></br>
+		<br>
 		monster by <a href="http://www.3drt.com/downloads.htm" target="_blank">3drt</a> -
 		COLLADA duck by Sony - other models courtesy <a href="http://cesiumjs.org/" target="_blank">Cesium</a>
 		</div>
@@ -212,7 +212,7 @@
 				if (sceneInfo.addGround) {
 					var groundMaterial = new THREE.MeshPhongMaterial({
 							color: 0xFFFFFF,
-							shading: THREE.SmoothShading,
+							shading: THREE.SmoothShading
 						});
 					ground = new THREE.Mesh( new THREE.PlaneBufferGeometry(512, 512), groundMaterial);
 

+ 1 - 1
examples/webgl_loader_mmd.html

@@ -80,7 +80,7 @@
 
 				scene = new THREE.Scene();
 
-				var gridHelper = new THREE.GridHelper( 100, 100 )
+				var gridHelper = new THREE.GridHelper( 100, 100 );
 				gridHelper.position.y = -10;
 				scene.add( gridHelper );
 

+ 8 - 8
examples/webgl_loader_mmd_pose.html

@@ -162,7 +162,7 @@
 
 						}, onProgress, onError );
 
-					};
+					}
 					loadVpd();
 
 				}, onProgress, onError );
@@ -189,7 +189,7 @@
 
 						return s.slice( s.lastIndexOf( '/' ) + 1 );
 
-					};
+					}
 
 					function initControls () {
 
@@ -207,7 +207,7 @@
 
 						}
 
-					};
+					}
 
 					function initKeys () {
 
@@ -217,7 +217,7 @@
 
 						}
 
-					};
+					}
 
 					function initPoses () {
 
@@ -231,7 +231,7 @@
 
 						poses.add( controls, 'pose', files ).onChange( onChangePose );
 
-					};
+					}
 
 					function initMorphs () {
 
@@ -241,7 +241,7 @@
 
 						}
 
-					};
+					}
 
 					function onChangeMorph () {
 
@@ -253,7 +253,7 @@
 
 						}
 
-					};
+					}
 
 					function onChangePose () {
 
@@ -269,7 +269,7 @@
 
 						}
 
-					};
+					}
 
 					initControls();
 					initKeys();

+ 2 - 2
examples/webgl_loader_pcd.html

@@ -41,8 +41,8 @@
 			<a href="http://threejs.org" target="_blank">three.js</a>
 			<a href="http://pointclouds.org/documentation/tutorials/pcd_file_format.php#pcd-file-format" target="_blank">PCD File format</a>
 			<div>PCD loader test by <a href="http://filipecaixeta.com.br" target="_blank">Filipe Caixeta</a></div>
-			<div>+/-: Increase/Decrease point size</a></div>
-			<div>c: Toggle color</a></div>
+			<div>+/-: Increase/Decrease point size</div>
+			<div>c: Toggle color</div>
 		</div>
 
 

+ 1 - 1
examples/webgl_loader_sea3d.html

@@ -28,7 +28,7 @@
 	</head>
 	<body>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFF" target="_blank">sea3d</a>
+			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFFF" target="_blank">sea3d</a>
 		</div>
 
 		<script src="../build/three.js"></script>

+ 1 - 1
examples/webgl_loader_sea3d_hierarchy.html

@@ -28,7 +28,7 @@
 	</head>
 	<body>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFF" target="_blank">sea3d</a>
+			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFFF" target="_blank">sea3d</a>
 		</div>
 
 		<script src="../build/three.js"></script>

+ 1 - 1
examples/webgl_loader_sea3d_keyframe.html

@@ -28,7 +28,7 @@
 	</head>
 	<body>
 		<div id="info">
-			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFF" target="_blank">sea3d</a>
+			<a href="http://threejs.org" target="_blank">three.js</a> - asset by <a href="https://github.com/sunag/sea3d" style="color:#FFFFFF" target="_blank">sea3d</a>
 			<div id="description">Click to play</div>
 		</div>
 

部分文件因为文件数量过多而无法显示