diff --git a/examples/css2d_label.html b/examples/css2d_label.html index 22ec964bc608e1..5bf435145a0c31 100644 --- a/examples/css2d_label.html +++ b/examples/css2d_label.html @@ -110,7 +110,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_molecules.html b/examples/css3d_molecules.html index b46e6317b83d08..81ce56273f80b5 100644 --- a/examples/css3d_molecules.html +++ b/examples/css3d_molecules.html @@ -149,7 +149,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_orthographic.html b/examples/css3d_orthographic.html index 0f887755d522b6..f4499442e0acc3 100644 --- a/examples/css3d_orthographic.html +++ b/examples/css3d_orthographic.html @@ -117,7 +117,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_panorama.html b/examples/css3d_panorama.html index 9acacce10358b7..8071f9366280fd 100644 --- a/examples/css3d_panorama.html +++ b/examples/css3d_panorama.html @@ -92,7 +92,7 @@ document.addEventListener( 'wheel', onDocumentMouseWheel, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_panorama_deviceorientation.html b/examples/css3d_panorama_deviceorientation.html index 3394425315df3b..7ed931c0504ce2 100644 --- a/examples/css3d_panorama_deviceorientation.html +++ b/examples/css3d_panorama_deviceorientation.html @@ -98,7 +98,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_periodictable.html b/examples/css3d_periodictable.html index 88e1666b85785e..836465ee34f3f5 100644 --- a/examples/css3d_periodictable.html +++ b/examples/css3d_periodictable.html @@ -378,7 +378,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_sandbox.html b/examples/css3d_sandbox.html index b3076d477bcfbd..c4d83311ca73d8 100644 --- a/examples/css3d_sandbox.html +++ b/examples/css3d_sandbox.html @@ -89,7 +89,7 @@ controls = new TrackballControls( camera, renderer2.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_sprites.html b/examples/css3d_sprites.html index c6d0ed89de8b7f..f41a8fbbe0607b 100644 --- a/examples/css3d_sprites.html +++ b/examples/css3d_sprites.html @@ -142,7 +142,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/css3d_youtube.html b/examples/css3d_youtube.html index 5b4c68d53064f0..c4c17f66d7988b 100644 --- a/examples/css3d_youtube.html +++ b/examples/css3d_youtube.html @@ -81,7 +81,7 @@ controls = new TrackballControls( camera, renderer.domElement ); controls.rotateSpeed = 4; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // Block iframe events when dragging camera diff --git a/examples/games_fps.html b/examples/games_fps.html index 7ccb13970c8c05..93653f92fe8b39 100644 --- a/examples/games_fps.html +++ b/examples/games_fps.html @@ -135,14 +135,16 @@ }, false ); - window.addEventListener( 'resize', () => { + window.addEventListener( 'resize', onWindowResize ); + + function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize( window.innerWidth, window.innerHeight ); - }, false ); + } document.addEventListener( 'click', () => { diff --git a/examples/misc_animation_groups.html b/examples/misc_animation_groups.html index 58a054943158e9..a6ded670a31aff 100644 --- a/examples/misc_animation_groups.html +++ b/examples/misc_animation_groups.html @@ -101,7 +101,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_animation_keys.html b/examples/misc_animation_keys.html index d8e0434a12e22c..477390afa70ed6 100644 --- a/examples/misc_animation_keys.html +++ b/examples/misc_animation_keys.html @@ -101,7 +101,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_boxselection.html b/examples/misc_boxselection.html index 798b225f8a6395..bc56733b6a8046 100644 --- a/examples/misc_boxselection.html +++ b/examples/misc_boxselection.html @@ -106,7 +106,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_controls_deviceorientation.html b/examples/misc_controls_deviceorientation.html index 160cd5dcb1862a..7776b7e61755e8 100644 --- a/examples/misc_controls_deviceorientation.html +++ b/examples/misc_controls_deviceorientation.html @@ -67,7 +67,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_controls_drag.html b/examples/misc_controls_drag.html index 2984bf86f44e38..bcb357bde39647 100644 --- a/examples/misc_controls_drag.html +++ b/examples/misc_controls_drag.html @@ -109,7 +109,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'click', onClick, false ); window.addEventListener( 'keydown', onKeyDown, false ); diff --git a/examples/misc_controls_fly.html b/examples/misc_controls_fly.html index b3181764bdf95d..d1b9b3abcdaf46 100644 --- a/examples/misc_controls_fly.html +++ b/examples/misc_controls_fly.html @@ -205,7 +205,7 @@ stats = new Stats(); document.body.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // postprocessing diff --git a/examples/misc_controls_map.html b/examples/misc_controls_map.html index dff355d307f748..d6b90184276f17 100644 --- a/examples/misc_controls_map.html +++ b/examples/misc_controls_map.html @@ -102,7 +102,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/misc_controls_orbit.html b/examples/misc_controls_orbit.html index 78e7a9a35026fd..78f8151ed1ca5d 100644 --- a/examples/misc_controls_orbit.html +++ b/examples/misc_controls_orbit.html @@ -97,7 +97,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_controls_pointerlock.html b/examples/misc_controls_pointerlock.html index 7342ba212d46be..737062a470334a 100644 --- a/examples/misc_controls_pointerlock.html +++ b/examples/misc_controls_pointerlock.html @@ -269,7 +269,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_controls_trackball.html b/examples/misc_controls_trackball.html index 15428d3c9a0153..d68ac4fdc4aae3 100644 --- a/examples/misc_controls_trackball.html +++ b/examples/misc_controls_trackball.html @@ -109,7 +109,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); createControls( perspectiveCamera ); diff --git a/examples/misc_controls_transform.html b/examples/misc_controls_transform.html index 2def2d363cc141..2d4a3330abb5db 100644 --- a/examples/misc_controls_transform.html +++ b/examples/misc_controls_transform.html @@ -76,7 +76,7 @@ control.attach( mesh ); scene.add( control ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); window.addEventListener( 'keydown', function ( event ) { diff --git a/examples/misc_exporter_collada.html b/examples/misc_exporter_collada.html index 4421d44be84d64..fb466ba7d1d931 100644 --- a/examples/misc_exporter_collada.html +++ b/examples/misc_exporter_collada.html @@ -77,7 +77,7 @@ container.appendChild( renderer.domElement ); // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // CONTROLS cameraControls = new OrbitControls( camera, renderer.domElement ); diff --git a/examples/misc_exporter_draco.html b/examples/misc_exporter_draco.html index 42afe6cf37e62d..744d5c53deca68 100644 --- a/examples/misc_exporter_draco.html +++ b/examples/misc_exporter_draco.html @@ -104,7 +104,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const exportButton = document.getElementById( 'exportFile' ); exportButton.addEventListener( 'click', exportFile ); diff --git a/examples/misc_exporter_gltf.html b/examples/misc_exporter_gltf.html index 9d5c54fdac07c2..8f6fae7b45403d 100644 --- a/examples/misc_exporter_gltf.html +++ b/examples/misc_exporter_gltf.html @@ -493,7 +493,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_exporter_obj.html b/examples/misc_exporter_obj.html index e42b3bd8ac35d2..a9a3385900cfc1 100644 --- a/examples/misc_exporter_obj.html +++ b/examples/misc_exporter_obj.html @@ -152,7 +152,7 @@ addGeometry( 1 ); window.addEventListener( 'click', onWindowClick, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'mousemove', onDocumentMouseMove, false ); document.addEventListener( 'mouseover', onDocumentMouseMove, false ); diff --git a/examples/misc_exporter_ply.html b/examples/misc_exporter_ply.html index 97c7a4ee335d6e..0d9979346cfbe4 100644 --- a/examples/misc_exporter_ply.html +++ b/examples/misc_exporter_ply.html @@ -88,7 +88,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const buttonExportASCII = document.getElementById( 'exportASCII' ); buttonExportASCII.addEventListener( 'click', exportASCII ); diff --git a/examples/misc_exporter_stl.html b/examples/misc_exporter_stl.html index 82723cfda57258..b830669f116a18 100644 --- a/examples/misc_exporter_stl.html +++ b/examples/misc_exporter_stl.html @@ -88,7 +88,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const buttonExportASCII = document.getElementById( 'exportASCII' ); buttonExportASCII.addEventListener( 'click', exportASCII ); diff --git a/examples/misc_legacy.html b/examples/misc_legacy.html index 75ced019d8fe8f..b7c8b3ef800cf3 100644 --- a/examples/misc_legacy.html +++ b/examples/misc_legacy.html @@ -65,7 +65,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/misc_lookat.html b/examples/misc_lookat.html index f7323910534a10..62a82d7079094c 100644 --- a/examples/misc_lookat.html +++ b/examples/misc_lookat.html @@ -77,7 +77,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/physics_ammo_break.html b/examples/physics_ammo_break.html index ce14bc445d6948..cee9f1b454adc8 100644 --- a/examples/physics_ammo_break.html +++ b/examples/physics_ammo_break.html @@ -146,7 +146,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/physics_ammo_cloth.html b/examples/physics_ammo_cloth.html index 8baf0a004e670f..e2807de189dff3 100644 --- a/examples/physics_ammo_cloth.html +++ b/examples/physics_ammo_cloth.html @@ -112,7 +112,7 @@ stats.domElement.style.top = '0px'; container.appendChild( stats.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/physics_ammo_rope.html b/examples/physics_ammo_rope.html index 93114b1cf0cc2c..6cdb19ef6b8b28 100644 --- a/examples/physics_ammo_rope.html +++ b/examples/physics_ammo_rope.html @@ -116,7 +116,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/physics_ammo_terrain.html b/examples/physics_ammo_terrain.html index 717802656af99c..1d2b7a5f378850 100644 --- a/examples/physics_ammo_terrain.html +++ b/examples/physics_ammo_terrain.html @@ -156,7 +156,7 @@ scene.add( light ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/physics_ammo_volume.html b/examples/physics_ammo_volume.html index 62dacb0fbb72bd..273d0bb8497e36 100644 --- a/examples/physics_ammo_volume.html +++ b/examples/physics_ammo_volume.html @@ -119,7 +119,7 @@ container.appendChild( stats.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/svg_lines.html b/examples/svg_lines.html index a1b68b03106830..2238013835503c 100644 --- a/examples/svg_lines.html +++ b/examples/svg_lines.html @@ -85,7 +85,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/svg_sandbox.html b/examples/svg_sandbox.html index f7c7a2ad49fd52..e7e4f2f83e677a 100644 --- a/examples/svg_sandbox.html +++ b/examples/svg_sandbox.html @@ -213,7 +213,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webaudio_orientation.html b/examples/webaudio_orientation.html index 9d5d4c718a66ba..6a553babbaf057 100644 --- a/examples/webaudio_orientation.html +++ b/examples/webaudio_orientation.html @@ -156,7 +156,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webaudio_sandbox.html b/examples/webaudio_sandbox.html index e74e24e579eaa9..ed847152abaf79 100644 --- a/examples/webaudio_sandbox.html +++ b/examples/webaudio_sandbox.html @@ -218,7 +218,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); animate(); diff --git a/examples/webaudio_timing.html b/examples/webaudio_timing.html index 97aedfe2c0de53..b333affafdfeaa 100644 --- a/examples/webaudio_timing.html +++ b/examples/webaudio_timing.html @@ -142,7 +142,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webaudio_visualizer.html b/examples/webaudio_visualizer.html index d0e6da3267a283..d29dc0d749bd4a 100644 --- a/examples/webaudio_visualizer.html +++ b/examples/webaudio_visualizer.html @@ -136,13 +136,13 @@ // - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); animate(); } - function onResize() { + function onWindowResize() { renderer.setSize( window.innerWidth, window.innerHeight ); diff --git a/examples/webgl2_materials_texture2darray.html b/examples/webgl2_materials_texture2darray.html index 176be5205524d3..13686aabdbcf01 100644 --- a/examples/webgl2_materials_texture2darray.html +++ b/examples/webgl2_materials_texture2darray.html @@ -128,7 +128,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl2_materials_texture3d.html b/examples/webgl2_materials_texture3d.html index 069fe5181d3928..ee3bf733dab092 100644 --- a/examples/webgl2_materials_texture3d.html +++ b/examples/webgl2_materials_texture3d.html @@ -126,7 +126,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl2_multisampled_renderbuffers.html b/examples/webgl2_multisampled_renderbuffers.html index 109c3133666c7b..e82b33d6ea4c2a 100644 --- a/examples/webgl2_multisampled_renderbuffers.html +++ b/examples/webgl2_multisampled_renderbuffers.html @@ -138,7 +138,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl2_volume_cloud.html b/examples/webgl2_volume_cloud.html index 7ca76b02f90c5e..c01c9b29567866 100644 --- a/examples/webgl2_volume_cloud.html +++ b/examples/webgl2_volume_cloud.html @@ -276,7 +276,7 @@ gui.add( parameters, 'range', 0, 1, 0.01 ).onChange( update ); gui.add( parameters, 'steps', 0, 200, 1 ).onChange( update ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl2_volume_instancing.html b/examples/webgl2_volume_instancing.html index ee6314e593c1fb..bd6c3ad3d9d287 100644 --- a/examples/webgl2_volume_instancing.html +++ b/examples/webgl2_volume_instancing.html @@ -227,7 +227,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl2_volume_perlin.html b/examples/webgl2_volume_perlin.html index aef42b9e3681f7..1f3f0b7b1414a5 100644 --- a/examples/webgl2_volume_perlin.html +++ b/examples/webgl2_volume_perlin.html @@ -221,7 +221,7 @@ gui.add( parameters, 'threshold', 0, 1, 0.01 ).onChange( update ); gui.add( parameters, 'steps', 0, 300, 1 ).onChange( update ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_animation_cloth.html b/examples/webgl_animation_cloth.html index 8549431542cd78..d38ece325acea5 100644 --- a/examples/webgl_animation_cloth.html +++ b/examples/webgl_animation_cloth.html @@ -572,7 +572,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // diff --git a/examples/webgl_animation_multiple.html b/examples/webgl_animation_multiple.html index def8dc591470d7..4df245528ee3a7 100644 --- a/examples/webgl_animation_multiple.html +++ b/examples/webgl_animation_multiple.html @@ -369,7 +369,7 @@ groundMesh.rotation.x = - Math.PI / 2; groundMesh.receiveShadow = true; worldScene.add( groundMesh ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_animation_skinning_additive_blending.html b/examples/webgl_animation_skinning_additive_blending.html index da2a6aa1a87c30..b534dd09183500 100644 --- a/examples/webgl_animation_skinning_additive_blending.html +++ b/examples/webgl_animation_skinning_additive_blending.html @@ -169,7 +169,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_animation_skinning_blending.html b/examples/webgl_animation_skinning_blending.html index 36729c172fa2f1..b7e3ba74afc8cc 100644 --- a/examples/webgl_animation_skinning_blending.html +++ b/examples/webgl_animation_skinning_blending.html @@ -144,7 +144,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_animation_skinning_morph.html b/examples/webgl_animation_skinning_morph.html index e948068f18309d..7a6b5bc7c8fb8a 100644 --- a/examples/webgl_animation_skinning_morph.html +++ b/examples/webgl_animation_skinning_morph.html @@ -109,7 +109,7 @@ renderer.outputEncoding = THREE.sRGBEncoding; container.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // stats stats = new Stats(); diff --git a/examples/webgl_buffergeometry.html b/examples/webgl_buffergeometry.html index e584e7fb17376d..da4bd4b996aff6 100644 --- a/examples/webgl_buffergeometry.html +++ b/examples/webgl_buffergeometry.html @@ -167,7 +167,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_compression.html b/examples/webgl_buffergeometry_compression.html index 547d2680189c39..733b671177f22c 100644 --- a/examples/webgl_buffergeometry_compression.html +++ b/examples/webgl_buffergeometry_compression.html @@ -190,7 +190,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_custom_attributes_particles.html b/examples/webgl_buffergeometry_custom_attributes_particles.html index ccced12dba591b..d24a7dcf7d29ce 100644 --- a/examples/webgl_buffergeometry_custom_attributes_particles.html +++ b/examples/webgl_buffergeometry_custom_attributes_particles.html @@ -132,7 +132,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_drawrange.html b/examples/webgl_buffergeometry_drawrange.html index 75e5be24702cc0..0d1f4bd092cdf7 100644 --- a/examples/webgl_buffergeometry_drawrange.html +++ b/examples/webgl_buffergeometry_drawrange.html @@ -174,7 +174,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_glbufferattribute.html b/examples/webgl_buffergeometry_glbufferattribute.html index d5fb409fbb6be8..d748c3b79cf26a 100644 --- a/examples/webgl_buffergeometry_glbufferattribute.html +++ b/examples/webgl_buffergeometry_glbufferattribute.html @@ -132,7 +132,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_indexed.html b/examples/webgl_buffergeometry_indexed.html index b5203f67db2ab6..fae8c6aeaec200 100644 --- a/examples/webgl_buffergeometry_indexed.html +++ b/examples/webgl_buffergeometry_indexed.html @@ -132,7 +132,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_instancing.html b/examples/webgl_buffergeometry_instancing.html index 41f1be36ab9818..ab810a0fe886e0 100644 --- a/examples/webgl_buffergeometry_instancing.html +++ b/examples/webgl_buffergeometry_instancing.html @@ -188,7 +188,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_instancing_billboards.html b/examples/webgl_buffergeometry_instancing_billboards.html index 389d41e9125737..15f498e0948536 100644 --- a/examples/webgl_buffergeometry_instancing_billboards.html +++ b/examples/webgl_buffergeometry_instancing_billboards.html @@ -141,7 +141,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); return true; diff --git a/examples/webgl_buffergeometry_instancing_interleaved.html b/examples/webgl_buffergeometry_instancing_interleaved.html index 5f5bbf112ce0e8..37e1775332e896 100644 --- a/examples/webgl_buffergeometry_instancing_interleaved.html +++ b/examples/webgl_buffergeometry_instancing_interleaved.html @@ -165,7 +165,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_lines.html b/examples/webgl_buffergeometry_lines.html index c888670d67fda9..7c8c51a38781dd 100644 --- a/examples/webgl_buffergeometry_lines.html +++ b/examples/webgl_buffergeometry_lines.html @@ -104,7 +104,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_lines_indexed.html b/examples/webgl_buffergeometry_lines_indexed.html index 159508d182ac0c..1f5a1e437a271e 100644 --- a/examples/webgl_buffergeometry_lines_indexed.html +++ b/examples/webgl_buffergeometry_lines_indexed.html @@ -197,7 +197,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_points.html b/examples/webgl_buffergeometry_points.html index 98e597c907c4ea..d3705986d2fdb2 100644 --- a/examples/webgl_buffergeometry_points.html +++ b/examples/webgl_buffergeometry_points.html @@ -101,7 +101,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_points_interleaved.html b/examples/webgl_buffergeometry_points_interleaved.html index bf4352df1517a3..8763f60043ea08 100644 --- a/examples/webgl_buffergeometry_points_interleaved.html +++ b/examples/webgl_buffergeometry_points_interleaved.html @@ -115,7 +115,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_rawshader.html b/examples/webgl_buffergeometry_rawshader.html index 4b10c48677fc1f..ad4c5b326bab60 100644 --- a/examples/webgl_buffergeometry_rawshader.html +++ b/examples/webgl_buffergeometry_rawshader.html @@ -137,7 +137,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_buffergeometry_selective_draw.html b/examples/webgl_buffergeometry_selective_draw.html index e94f8cc2047e08..473d9a55ba22e9 100644 --- a/examples/webgl_buffergeometry_selective_draw.html +++ b/examples/webgl_buffergeometry_selective_draw.html @@ -78,7 +78,7 @@ stats = new Stats(); document.body.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); addLines( 1.0 ); diff --git a/examples/webgl_buffergeometry_uint.html b/examples/webgl_buffergeometry_uint.html index 7fec9bdcbbc5f4..83240a2f92b5e6 100644 --- a/examples/webgl_buffergeometry_uint.html +++ b/examples/webgl_buffergeometry_uint.html @@ -168,7 +168,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_camera.html b/examples/webgl_camera.html index 9a8cb377b8f590..dabebb40c59da8 100644 --- a/examples/webgl_camera.html +++ b/examples/webgl_camera.html @@ -133,7 +133,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'keydown', onKeyDown, false ); } diff --git a/examples/webgl_camera_array.html b/examples/webgl_camera_array.html index 6ae52ed6e6647f..5ba230c1857c77 100644 --- a/examples/webgl_camera_array.html +++ b/examples/webgl_camera_array.html @@ -83,7 +83,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_camera_cinematic.html b/examples/webgl_camera_cinematic.html index 7429e431f9a9c5..0faf1f67e5ead7 100644 --- a/examples/webgl_camera_cinematic.html +++ b/examples/webgl_camera_cinematic.html @@ -81,7 +81,7 @@ document.addEventListener( 'mousemove', onDocumentMouseMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const effectController = { @@ -141,7 +141,7 @@ matChanger(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_camera_logarithmicdepthbuffer.html b/examples/webgl_camera_logarithmicdepthbuffer.html index bdeeec92e3dfa7..0d39178f3c5f87 100644 --- a/examples/webgl_camera_logarithmicdepthbuffer.html +++ b/examples/webgl_camera_logarithmicdepthbuffer.html @@ -128,7 +128,7 @@ border.addEventListener( 'pointerdown', onBorderPointerDown ); window.addEventListener( 'mousemove', onMouseMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); window.addEventListener( 'wheel', onMouseWheel, false ); } diff --git a/examples/webgl_clipping.html b/examples/webgl_clipping.html index 4be2579e6f782a..61608a3727873c 100644 --- a/examples/webgl_clipping.html +++ b/examples/webgl_clipping.html @@ -104,7 +104,7 @@ renderer.shadowMap.enabled = true; renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.body.appendChild( renderer.domElement ); // ***** Clipping setup (renderer): ***** diff --git a/examples/webgl_clipping_advanced.html b/examples/webgl_clipping_advanced.html index 21ed032c8da10d..1e8413c5731f5c 100644 --- a/examples/webgl_clipping_advanced.html +++ b/examples/webgl_clipping_advanced.html @@ -274,7 +274,7 @@ renderer.shadowMap.enabled = true; renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); container.appendChild( renderer.domElement ); // Clipping setup: globalClippingPlanes = createPlanes( GlobalClippingPlanes.length ); diff --git a/examples/webgl_clipping_intersection.html b/examples/webgl_clipping_intersection.html index 938799c1e55577..4c3e49a083fd19 100644 --- a/examples/webgl_clipping_intersection.html +++ b/examples/webgl_clipping_intersection.html @@ -132,7 +132,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_clipping_stencil.html b/examples/webgl_clipping_stencil.html index 1ebf2d54bf5b7a..17aad958fdecf1 100644 --- a/examples/webgl_clipping_stencil.html +++ b/examples/webgl_clipping_stencil.html @@ -212,7 +212,7 @@ renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); renderer.setClearColor( 0x263238 ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.body.appendChild( renderer.domElement ); renderer.localClippingEnabled = true; diff --git a/examples/webgl_custom_attributes.html b/examples/webgl_custom_attributes.html index b7c7d4b68c8eb4..7e67fbf802eae2 100644 --- a/examples/webgl_custom_attributes.html +++ b/examples/webgl_custom_attributes.html @@ -128,7 +128,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_custom_attributes_lines.html b/examples/webgl_custom_attributes_lines.html index c1e2dcfd355083..caaf11529f7046 100644 --- a/examples/webgl_custom_attributes_lines.html +++ b/examples/webgl_custom_attributes_lines.html @@ -143,7 +143,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_custom_attributes_points.html b/examples/webgl_custom_attributes_points.html index 86a24fcfd9073c..167e7907941e87 100644 --- a/examples/webgl_custom_attributes_points.html +++ b/examples/webgl_custom_attributes_points.html @@ -145,7 +145,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_custom_attributes_points2.html b/examples/webgl_custom_attributes_points2.html index 6d2a953221556d..20d782bad3cae7 100644 --- a/examples/webgl_custom_attributes_points2.html +++ b/examples/webgl_custom_attributes_points2.html @@ -162,7 +162,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_custom_attributes_points3.html b/examples/webgl_custom_attributes_points3.html index e0b118281a5c99..1e7e7700769ce9 100644 --- a/examples/webgl_custom_attributes_points3.html +++ b/examples/webgl_custom_attributes_points3.html @@ -237,7 +237,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_decals.html b/examples/webgl_decals.html index fedf7e76d66baf..3268e2940fbf34 100644 --- a/examples/webgl_decals.html +++ b/examples/webgl_decals.html @@ -120,7 +120,7 @@ mouseHelper.visible = false; scene.add( mouseHelper ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); let moved = false; diff --git a/examples/webgl_depth_texture.html b/examples/webgl_depth_texture.html index b1a86fc8de7224..52905fbc83c16a 100644 --- a/examples/webgl_depth_texture.html +++ b/examples/webgl_depth_texture.html @@ -124,7 +124,7 @@ setupPost(); onWindowResize(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // const gui = new GUI( { width: 300 } ); diff --git a/examples/webgl_effects_anaglyph.html b/examples/webgl_effects_anaglyph.html index 5e5caac0935540..2631c9b5e497af 100644 --- a/examples/webgl_effects_anaglyph.html +++ b/examples/webgl_effects_anaglyph.html @@ -88,7 +88,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_effects_ascii.html b/examples/webgl_effects_ascii.html index d39677bf81f418..759d26cb197925 100644 --- a/examples/webgl_effects_ascii.html +++ b/examples/webgl_effects_ascii.html @@ -70,7 +70,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_effects_parallaxbarrier.html b/examples/webgl_effects_parallaxbarrier.html index 4632c8eea28a17..88b6045f4df287 100644 --- a/examples/webgl_effects_parallaxbarrier.html +++ b/examples/webgl_effects_parallaxbarrier.html @@ -89,7 +89,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_effects_peppersghost.html b/examples/webgl_effects_peppersghost.html index 1c71fd5a04bb6b..f7d7b10e359295 100644 --- a/examples/webgl_effects_peppersghost.html +++ b/examples/webgl_effects_peppersghost.html @@ -90,7 +90,7 @@ effect.setSize( window.innerWidth, window.innerHeight ); effect.cameraDistance = 5; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_effects_stereo.html b/examples/webgl_effects_stereo.html index 74136264ecb7a6..57b44ed1087a7f 100644 --- a/examples/webgl_effects_stereo.html +++ b/examples/webgl_effects_stereo.html @@ -78,7 +78,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_framebuffer_texture.html b/examples/webgl_framebuffer_texture.html index 43db28254ecfa6..969cbd66c79a52 100644 --- a/examples/webgl_framebuffer_texture.html +++ b/examples/webgl_framebuffer_texture.html @@ -126,7 +126,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_furnace_test.html b/examples/webgl_furnace_test.html index 85772cf5140d9f..f1c91ea63032af 100644 --- a/examples/webgl_furnace_test.html +++ b/examples/webgl_furnace_test.html @@ -34,7 +34,7 @@ renderer.setPixelRatio( window.devicePixelRatio ); document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.body.addEventListener( 'mouseover', function () { @@ -114,7 +114,7 @@ } - function onResize() { + function onWindowResize() { const width = window.innerWidth; const height = window.innerHeight; diff --git a/examples/webgl_geometries.html b/examples/webgl_geometries.html index d9005e85259bf0..5af3692438bcd9 100644 --- a/examples/webgl_geometries.html +++ b/examples/webgl_geometries.html @@ -117,7 +117,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometries_parametric.html b/examples/webgl_geometries_parametric.html index 1383e2f894f1a0..eef4e1b2d15931 100644 --- a/examples/webgl_geometries_parametric.html +++ b/examples/webgl_geometries_parametric.html @@ -104,7 +104,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_colors.html b/examples/webgl_geometry_colors.html index f7b873ea767fad..d5fa8a9f8c6c7f 100644 --- a/examples/webgl_geometry_colors.html +++ b/examples/webgl_geometry_colors.html @@ -160,7 +160,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_colors_lookuptable.html b/examples/webgl_geometry_colors_lookuptable.html index 77c2d258dc406c..73590d39ac945d 100644 --- a/examples/webgl_geometry_colors_lookuptable.html +++ b/examples/webgl_geometry_colors_lookuptable.html @@ -92,7 +92,7 @@ renderer.setSize( width, height ); container.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const controls = new OrbitControls( perpCamera, renderer.domElement ); controls.addEventListener( 'change', render ); diff --git a/examples/webgl_geometry_convex.html b/examples/webgl_geometry_convex.html index 4279def70c15d7..93eb4ea2965118 100644 --- a/examples/webgl_geometry_convex.html +++ b/examples/webgl_geometry_convex.html @@ -124,7 +124,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_cube.html b/examples/webgl_geometry_cube.html index 9fd7fb96eb1e88..cfa4c70b57c6bc 100644 --- a/examples/webgl_geometry_cube.html +++ b/examples/webgl_geometry_cube.html @@ -40,7 +40,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_dynamic.html b/examples/webgl_geometry_dynamic.html index 0d5f0e684df940..8c7debbca103b6 100644 --- a/examples/webgl_geometry_dynamic.html +++ b/examples/webgl_geometry_dynamic.html @@ -83,7 +83,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_extrude_shapes2.html b/examples/webgl_geometry_extrude_shapes2.html index 2797ef3f791c3f..9cab6038711274 100644 --- a/examples/webgl_geometry_extrude_shapes2.html +++ b/examples/webgl_geometry_extrude_shapes2.html @@ -442,7 +442,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_extrude_splines.html b/examples/webgl_geometry_extrude_splines.html index cfd8e6c690363b..93025d4bdc9ff4 100644 --- a/examples/webgl_geometry_extrude_splines.html +++ b/examples/webgl_geometry_extrude_splines.html @@ -263,7 +263,7 @@ controls.minDistance = 100; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_hierarchy.html b/examples/webgl_geometry_hierarchy.html index 1e9e902b9111c4..11642e6e13b42c 100644 --- a/examples/webgl_geometry_hierarchy.html +++ b/examples/webgl_geometry_hierarchy.html @@ -75,7 +75,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_hierarchy2.html b/examples/webgl_geometry_hierarchy2.html index 2014f1b755eadf..82a227e866b5da 100644 --- a/examples/webgl_geometry_hierarchy2.html +++ b/examples/webgl_geometry_hierarchy2.html @@ -130,7 +130,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_minecraft.html b/examples/webgl_geometry_minecraft.html index 27f0cdba35b774..61ae40907e2ef4 100644 --- a/examples/webgl_geometry_minecraft.html +++ b/examples/webgl_geometry_minecraft.html @@ -170,7 +170,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_minecraft_ao.html b/examples/webgl_geometry_minecraft_ao.html index 57c0e5fee9f3d2..8d14133d134c65 100644 --- a/examples/webgl_geometry_minecraft_ao.html +++ b/examples/webgl_geometry_minecraft_ao.html @@ -285,7 +285,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_normals.html b/examples/webgl_geometry_normals.html index 6b4c8c8ba40002..d74d16b84cfc09 100644 --- a/examples/webgl_geometry_normals.html +++ b/examples/webgl_geometry_normals.html @@ -127,7 +127,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_nurbs.html b/examples/webgl_geometry_nurbs.html index 684f63632b483a..118406776ec889 100644 --- a/examples/webgl_geometry_nurbs.html +++ b/examples/webgl_geometry_nurbs.html @@ -174,7 +174,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_shapes.html b/examples/webgl_geometry_shapes.html index c60d6bbaa5b0ea..59a6f67eacda4d 100644 --- a/examples/webgl_geometry_shapes.html +++ b/examples/webgl_geometry_shapes.html @@ -357,7 +357,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_teapot.html b/examples/webgl_geometry_teapot.html index b820a9498b0ed3..d28375cd9ecf4a 100644 --- a/examples/webgl_geometry_teapot.html +++ b/examples/webgl_geometry_teapot.html @@ -71,7 +71,7 @@ container.appendChild( renderer.domElement ); // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // CONTROLS cameraControls = new OrbitControls( camera, renderer.domElement ); diff --git a/examples/webgl_geometry_terrain.html b/examples/webgl_geometry_terrain.html index 5aa4aeae285ad9..b90bd46a1eb1a9 100644 --- a/examples/webgl_geometry_terrain.html +++ b/examples/webgl_geometry_terrain.html @@ -88,7 +88,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_terrain_fog.html b/examples/webgl_geometry_terrain_fog.html index d035a26dd80f5b..ac0a44705ef080 100644 --- a/examples/webgl_geometry_terrain_fog.html +++ b/examples/webgl_geometry_terrain_fog.html @@ -87,7 +87,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_terrain_raycast.html b/examples/webgl_geometry_terrain_raycast.html index 41864d46340b33..31c62b9cc2839d 100644 --- a/examples/webgl_geometry_terrain_raycast.html +++ b/examples/webgl_geometry_terrain_raycast.html @@ -110,7 +110,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_text.html b/examples/webgl_geometry_text.html index fc3c2a2c6ff21e..54d705a8e06d15 100644 --- a/examples/webgl_geometry_text.html +++ b/examples/webgl_geometry_text.html @@ -245,7 +245,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_geometry_text_shapes.html b/examples/webgl_geometry_text_shapes.html index e37cd0323d00a7..45b6a9ab8dd5a3 100644 --- a/examples/webgl_geometry_text_shapes.html +++ b/examples/webgl_geometry_text_shapes.html @@ -126,7 +126,7 @@ controls.target.set( 0, 0, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } // end init diff --git a/examples/webgl_geometry_text_stroke.html b/examples/webgl_geometry_text_stroke.html index d89c21a32eafc3..84a1168a4d9385 100644 --- a/examples/webgl_geometry_text_stroke.html +++ b/examples/webgl_geometry_text_stroke.html @@ -130,7 +130,7 @@ controls.target.set( 0, 0, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } // end init diff --git a/examples/webgl_gpgpu_birds.html b/examples/webgl_gpgpu_birds.html index 6847ba3092515e..b8400478a5a0c3 100644 --- a/examples/webgl_gpgpu_birds.html +++ b/examples/webgl_gpgpu_birds.html @@ -448,7 +448,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_gpgpu_birds_gltf.html b/examples/webgl_gpgpu_birds_gltf.html index 5fbce8153c8a19..4ba9f9120b71f6 100644 --- a/examples/webgl_gpgpu_birds_gltf.html +++ b/examples/webgl_gpgpu_birds_gltf.html @@ -389,7 +389,7 @@ container.style.touchAction = 'none'; container.addEventListener( 'pointermove', onPointerMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_gpgpu_protoplanet.html b/examples/webgl_gpgpu_protoplanet.html index 94ffaa058eff81..ebf1c3f6193d28 100644 --- a/examples/webgl_gpgpu_protoplanet.html +++ b/examples/webgl_gpgpu_protoplanet.html @@ -302,7 +302,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); initGUI(); diff --git a/examples/webgl_gpgpu_water.html b/examples/webgl_gpgpu_water.html index 8c2e7c560bab8d..b9cba8234138f7 100644 --- a/examples/webgl_gpgpu_water.html +++ b/examples/webgl_gpgpu_water.html @@ -331,7 +331,7 @@ }, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_helpers.html b/examples/webgl_helpers.html index 54d2ce352accb5..cf5afd755d27ed 100644 --- a/examples/webgl_helpers.html +++ b/examples/webgl_helpers.html @@ -110,7 +110,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_instancing_dynamic.html b/examples/webgl_instancing_dynamic.html index d9d5a6960ac6aa..e2c22e20dc4fff 100644 --- a/examples/webgl_instancing_dynamic.html +++ b/examples/webgl_instancing_dynamic.html @@ -68,7 +68,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_instancing_modified.html b/examples/webgl_instancing_modified.html index b99c1243ebf3e7..d30c48c7c0a587 100644 --- a/examples/webgl_instancing_modified.html +++ b/examples/webgl_instancing_modified.html @@ -125,7 +125,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_instancing_performance.html b/examples/webgl_instancing_performance.html index 80819059dbb670..84a5772a9b2281 100644 --- a/examples/webgl_instancing_performance.html +++ b/examples/webgl_instancing_performance.html @@ -281,7 +281,7 @@ // listeners - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); Object.assign( window, { scene } ); diff --git a/examples/webgl_instancing_raycast.html b/examples/webgl_instancing_raycast.html index ff5a01b50869e4..872838904d3048 100644 --- a/examples/webgl_instancing_raycast.html +++ b/examples/webgl_instancing_raycast.html @@ -91,7 +91,7 @@ stats = new Stats(); document.body.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'mousemove', onMouseMove, false ); } diff --git a/examples/webgl_instancing_scatter.html b/examples/webgl_instancing_scatter.html index 74c235094ad57c..dd3fbdf0b9a451 100644 --- a/examples/webgl_instancing_scatter.html +++ b/examples/webgl_instancing_scatter.html @@ -178,7 +178,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_interactive_buffergeometry.html b/examples/webgl_interactive_buffergeometry.html index fe37d1035f5a4b..e40a58dd672b79 100644 --- a/examples/webgl_interactive_buffergeometry.html +++ b/examples/webgl_interactive_buffergeometry.html @@ -199,7 +199,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'mousemove', onDocumentMouseMove, false ); } diff --git a/examples/webgl_interactive_cubes.html b/examples/webgl_interactive_cubes.html index 2b740471d396f9..53636acc1c1ff1 100644 --- a/examples/webgl_interactive_cubes.html +++ b/examples/webgl_interactive_cubes.html @@ -89,7 +89,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_interactive_cubes_ortho.html b/examples/webgl_interactive_cubes_ortho.html index db9c2984758e55..408c21064ba358 100644 --- a/examples/webgl_interactive_cubes_ortho.html +++ b/examples/webgl_interactive_cubes_ortho.html @@ -91,7 +91,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_interactive_lines.html b/examples/webgl_interactive_lines.html index 4788b8b49d2805..66e60b45538ca3 100644 --- a/examples/webgl_interactive_lines.html +++ b/examples/webgl_interactive_lines.html @@ -140,7 +140,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_interactive_points.html b/examples/webgl_interactive_points.html index 338f8217234069..3df0141f53581e 100644 --- a/examples/webgl_interactive_points.html +++ b/examples/webgl_interactive_points.html @@ -153,7 +153,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'mousemove', onDocumentMouseMove, false ); } diff --git a/examples/webgl_interactive_raycasting_points.html b/examples/webgl_interactive_raycasting_points.html index f04744e6c6b081..d83ba79bde5ac1 100644 --- a/examples/webgl_interactive_raycasting_points.html +++ b/examples/webgl_interactive_raycasting_points.html @@ -208,7 +208,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'mousemove', onDocumentMouseMove, false ); } diff --git a/examples/webgl_interactive_voxelpainter.html b/examples/webgl_interactive_voxelpainter.html index bac4a47d971c17..3954ec5b181295 100644 --- a/examples/webgl_interactive_voxelpainter.html +++ b/examples/webgl_interactive_voxelpainter.html @@ -98,7 +98,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_layers.html b/examples/webgl_layers.html index c00c17cb675497..1ba189a4950b27 100644 --- a/examples/webgl_layers.html +++ b/examples/webgl_layers.html @@ -136,7 +136,7 @@ gui.add( layers, 'enable all' ); gui.add( layers, 'disable all' ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lensflares.html b/examples/webgl_lensflares.html index d50dfc62ff2123..7ad58eb3937c9b 100644 --- a/examples/webgl_lensflares.html +++ b/examples/webgl_lensflares.html @@ -135,7 +135,7 @@ // events - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lightningstrike.html b/examples/webgl_lightningstrike.html index 4b21b40e766a9f..a7c823ff97b23d 100644 --- a/examples/webgl_lightningstrike.html +++ b/examples/webgl_lightningstrike.html @@ -63,7 +63,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); createScene(); diff --git a/examples/webgl_lightprobe.html b/examples/webgl_lightprobe.html index 1c8d425b218ad3..723fea4d23b188 100644 --- a/examples/webgl_lightprobe.html +++ b/examples/webgl_lightprobe.html @@ -150,7 +150,7 @@ fl.open(); // listener - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lightprobe_cubecamera.html b/examples/webgl_lightprobe_cubecamera.html index 5c4e81956f8782..b6d9dd8344fa0c 100644 --- a/examples/webgl_lightprobe_cubecamera.html +++ b/examples/webgl_lightprobe_cubecamera.html @@ -90,7 +90,7 @@ } ); // listener - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lights_hemisphere.html b/examples/webgl_lights_hemisphere.html index aafeeeb1b63fe9..b051a031be78a9 100644 --- a/examples/webgl_lights_hemisphere.html +++ b/examples/webgl_lights_hemisphere.html @@ -200,7 +200,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const hemisphereButton = document.getElementById( 'hemisphereButton' ); hemisphereButton.addEventListener( 'click', function () { diff --git a/examples/webgl_lights_physical.html b/examples/webgl_lights_physical.html index 8a2a34301e8718..132b8919f9c0ec 100644 --- a/examples/webgl_lights_physical.html +++ b/examples/webgl_lights_physical.html @@ -231,7 +231,7 @@ controls.minDistance = 1; controls.maxDistance = 20; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_lights_pointlights.html b/examples/webgl_lights_pointlights.html index 861fce52cf8228..4c9df84741665b 100644 --- a/examples/webgl_lights_pointlights.html +++ b/examples/webgl_lights_pointlights.html @@ -81,7 +81,7 @@ stats = new Stats(); document.body.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lights_pointlights2.html b/examples/webgl_lights_pointlights2.html index a701fcfa880ab9..97ac10b5d94867 100644 --- a/examples/webgl_lights_pointlights2.html +++ b/examples/webgl_lights_pointlights2.html @@ -154,7 +154,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lights_rectarealight.html b/examples/webgl_lights_rectarealight.html index e21a7fbfa0ed78..155fafaccd38f0 100644 --- a/examples/webgl_lights_rectarealight.html +++ b/examples/webgl_lights_rectarealight.html @@ -78,14 +78,14 @@ // - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); stats = new Stats(); document.body.appendChild( stats.dom ); } - function onResize() { + function onWindowResize() { renderer.setSize( window.innerWidth, window.innerHeight ); camera.aspect = ( window.innerWidth / window.innerHeight ); diff --git a/examples/webgl_lights_spotlight.html b/examples/webgl_lights_spotlight.html index c67625d763b9ad..bd4ec58ae97e21 100644 --- a/examples/webgl_lights_spotlight.html +++ b/examples/webgl_lights_spotlight.html @@ -98,11 +98,11 @@ render(); - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); } - function onResize() { + function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); diff --git a/examples/webgl_lights_spotlights.html b/examples/webgl_lights_spotlights.html index 347b7814915ada..718edeeeae82be 100644 --- a/examples/webgl_lights_spotlights.html +++ b/examples/webgl_lights_spotlights.html @@ -80,8 +80,8 @@ scene.add( lightHelper1, lightHelper2, lightHelper3 ); document.body.appendChild( renderer.domElement ); - onResize(); - window.addEventListener( 'resize', onResize, false ); + onWindowResize(); + window.addEventListener( 'resize', onWindowResize ); controls.target.set( 0, 7, 0 ); controls.maxPolarAngle = Math.PI / 2; @@ -103,7 +103,7 @@ } - function onResize() { + function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); diff --git a/examples/webgl_lines_colors.html b/examples/webgl_lines_colors.html index 79f0671dadd9fb..f1401277394ce2 100644 --- a/examples/webgl_lines_colors.html +++ b/examples/webgl_lines_colors.html @@ -159,7 +159,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lines_dashed.html b/examples/webgl_lines_dashed.html index 4c012a819cf91c..681134376e1a17 100644 --- a/examples/webgl_lines_dashed.html +++ b/examples/webgl_lines_dashed.html @@ -71,7 +71,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lines_fat.html b/examples/webgl_lines_fat.html index 206ec28457198f..6a6d4471a858ea 100644 --- a/examples/webgl_lines_fat.html +++ b/examples/webgl_lines_fat.html @@ -123,7 +123,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); onWindowResize(); stats = new Stats(); diff --git a/examples/webgl_lines_fat_wireframe.html b/examples/webgl_lines_fat_wireframe.html index cc43cfe028a9f4..e7b149ecb45cb2 100644 --- a/examples/webgl_lines_fat_wireframe.html +++ b/examples/webgl_lines_fat_wireframe.html @@ -94,7 +94,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); onWindowResize(); stats = new Stats(); diff --git a/examples/webgl_lines_sphere.html b/examples/webgl_lines_sphere.html index ce8fadaf251db8..b0592fa5a8abd4 100644 --- a/examples/webgl_lines_sphere.html +++ b/examples/webgl_lines_sphere.html @@ -67,7 +67,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // test geometry swapability diff --git a/examples/webgl_loader_3mf.html b/examples/webgl_loader_3mf.html index 814a78c18734ca..056ebc2dc38155 100644 --- a/examples/webgl_loader_3mf.html +++ b/examples/webgl_loader_3mf.html @@ -93,7 +93,7 @@ loader = new ThreeMFLoader( manager ); loadAsset( params.asset ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // diff --git a/examples/webgl_loader_3mf_materials.html b/examples/webgl_loader_3mf_materials.html index 1ad2459853429c..fffd991e4b45b7 100644 --- a/examples/webgl_loader_3mf_materials.html +++ b/examples/webgl_loader_3mf_materials.html @@ -113,7 +113,7 @@ controls.target.set( 0, 20, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); render(); diff --git a/examples/webgl_loader_amf.html b/examples/webgl_loader_amf.html index 5490f83ea57d86..f694eaaa9708bb 100644 --- a/examples/webgl_loader_amf.html +++ b/examples/webgl_loader_amf.html @@ -70,7 +70,7 @@ controls.target.set( 0, 1.2, 2 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_assimp.html b/examples/webgl_loader_assimp.html index b07789a67ab128..75fe874b594556 100644 --- a/examples/webgl_loader_assimp.html +++ b/examples/webgl_loader_assimp.html @@ -74,7 +74,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); animate(); } diff --git a/examples/webgl_loader_bvh.html b/examples/webgl_loader_bvh.html index 39ca029eb0be5b..9c3ff57bd7b1a1 100644 --- a/examples/webgl_loader_bvh.html +++ b/examples/webgl_loader_bvh.html @@ -74,7 +74,7 @@ controls.minDistance = 300; controls.maxDistance = 700; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_collada.html b/examples/webgl_loader_collada.html index 47028b0f3fe1c2..9c40e1efc8bc8e 100644 --- a/examples/webgl_loader_collada.html +++ b/examples/webgl_loader_collada.html @@ -80,7 +80,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_collada_kinematics.html b/examples/webgl_loader_collada_kinematics.html index cc0d18754f62b2..75e925948d29b1 100644 --- a/examples/webgl_loader_collada_kinematics.html +++ b/examples/webgl_loader_collada_kinematics.html @@ -100,7 +100,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_collada_skinning.html b/examples/webgl_loader_collada_skinning.html index d88bda54a288f4..b55b7f4012b3fc 100644 --- a/examples/webgl_loader_collada_skinning.html +++ b/examples/webgl_loader_collada_skinning.html @@ -102,7 +102,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_draco.html b/examples/webgl_loader_draco.html index 70e01d446830b3..6fdcb23ca0c6ff 100644 --- a/examples/webgl_loader_draco.html +++ b/examples/webgl_loader_draco.html @@ -84,7 +84,7 @@ renderer.shadowMap.enabled = true; container.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_fbx.html b/examples/webgl_loader_fbx.html index 716b7cc354b5f1..f036b96c9e9174 100644 --- a/examples/webgl_loader_fbx.html +++ b/examples/webgl_loader_fbx.html @@ -103,7 +103,7 @@ controls.target.set( 0, 100, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // stats stats = new Stats(); diff --git a/examples/webgl_loader_fbx_nurbs.html b/examples/webgl_loader_fbx_nurbs.html index eb6ee4c743a296..1e782639a230ca 100644 --- a/examples/webgl_loader_fbx_nurbs.html +++ b/examples/webgl_loader_fbx_nurbs.html @@ -69,7 +69,7 @@ controls.target.set( 0, 12, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_gltf.html b/examples/webgl_loader_gltf.html index bf521f7c90bfd7..c77352a99856fe 100644 --- a/examples/webgl_loader_gltf.html +++ b/examples/webgl_loader_gltf.html @@ -101,7 +101,7 @@ controls.target.set( 0, 0, - 0.2 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_gltf_extensions.html b/examples/webgl_loader_gltf_extensions.html index 81e9afc3134215..d926f62716b7f3 100644 --- a/examples/webgl_loader_gltf_extensions.html +++ b/examples/webgl_loader_gltf_extensions.html @@ -154,7 +154,7 @@ renderer.physicallyCorrectLights = true; document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // Load background and generate envMap diff --git a/examples/webgl_loader_gltf_variants.html b/examples/webgl_loader_gltf_variants.html index 1fe4c133a7c203..25c109bea38179 100644 --- a/examples/webgl_loader_gltf_variants.html +++ b/examples/webgl_loader_gltf_variants.html @@ -104,7 +104,7 @@ controls.target.set( 0, 0.5, - 0.2 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_imagebitmap.html b/examples/webgl_loader_imagebitmap.html index 65ef4d2d0843c0..409f5163a2ef9d 100644 --- a/examples/webgl_loader_imagebitmap.html +++ b/examples/webgl_loader_imagebitmap.html @@ -117,7 +117,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_kmz.html b/examples/webgl_loader_kmz.html index 4f86f756f92667..24eb80c72ca9cf 100644 --- a/examples/webgl_loader_kmz.html +++ b/examples/webgl_loader_kmz.html @@ -61,7 +61,7 @@ controls.addEventListener( 'change', render ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_ldraw.html b/examples/webgl_loader_ldraw.html index b5d7904f85e05e..7bfc0376b90302 100644 --- a/examples/webgl_loader_ldraw.html +++ b/examples/webgl_loader_ldraw.html @@ -104,7 +104,7 @@ noConstructionSteps: "No steps." }; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); progressBarDiv = document.createElement( 'div' ); progressBarDiv.innerText = "Loading..."; diff --git a/examples/webgl_loader_lwo.html b/examples/webgl_loader_lwo.html index 2da8f732ad1f11..979a5f373f4db4 100644 --- a/examples/webgl_loader_lwo.html +++ b/examples/webgl_loader_lwo.html @@ -101,7 +101,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_md2.html b/examples/webgl_loader_md2.html index abb7de041aba79..4192b751a815eb 100644 --- a/examples/webgl_loader_md2.html +++ b/examples/webgl_loader_md2.html @@ -127,7 +127,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // CONTROLS diff --git a/examples/webgl_loader_md2_control.html b/examples/webgl_loader_md2_control.html index db1648a5da98b5..a299c7add0310d 100644 --- a/examples/webgl_loader_md2_control.html +++ b/examples/webgl_loader_md2_control.html @@ -137,7 +137,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'keydown', onKeyDown, false ); document.addEventListener( 'keyup', onKeyUp, false ); diff --git a/examples/webgl_loader_mdd.html b/examples/webgl_loader_mdd.html index c418cb020e1409..fe1b9eaa691aa4 100644 --- a/examples/webgl_loader_mdd.html +++ b/examples/webgl_loader_mdd.html @@ -63,7 +63,7 @@ renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_mmd.html b/examples/webgl_loader_mmd.html index 4f1857d8cc7a12..39f7ce9fcfc073 100644 --- a/examples/webgl_loader_mmd.html +++ b/examples/webgl_loader_mmd.html @@ -144,7 +144,7 @@ controls.minDistance = 10; controls.maxDistance = 100; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); function initGui() { diff --git a/examples/webgl_loader_mmd_audio.html b/examples/webgl_loader_mmd_audio.html index 54dceeba0b9a36..cad64a1e7e380b 100644 --- a/examples/webgl_loader_mmd_audio.html +++ b/examples/webgl_loader_mmd_audio.html @@ -150,7 +150,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_mmd_pose.html b/examples/webgl_loader_mmd_pose.html index c23f8e5174540a..de6ad160f6a634 100644 --- a/examples/webgl_loader_mmd_pose.html +++ b/examples/webgl_loader_mmd_pose.html @@ -151,7 +151,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); function initGui() { diff --git a/examples/webgl_loader_nodes.html b/examples/webgl_loader_nodes.html index 053a7723b91a0b..f246bb32ef5c07 100644 --- a/examples/webgl_loader_nodes.html +++ b/examples/webgl_loader_nodes.html @@ -74,7 +74,7 @@ mesh = new THREE.Mesh( teapot ); scene.add( mesh ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); updateMaterial(); diff --git a/examples/webgl_loader_nrrd.html b/examples/webgl_loader_nrrd.html index 58049511df5296..34fa2c9dfd21b2 100644 --- a/examples/webgl_loader_nrrd.html +++ b/examples/webgl_loader_nrrd.html @@ -180,7 +180,7 @@ setupInset(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_obj.html b/examples/webgl_loader_obj.html index 7a548e91f42eb4..cd0ab1aff657cd 100644 --- a/examples/webgl_loader_obj.html +++ b/examples/webgl_loader_obj.html @@ -113,7 +113,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_obj_mtl.html b/examples/webgl_loader_obj_mtl.html index 7578a122e43c0c..06e015b715ebe1 100644 --- a/examples/webgl_loader_obj_mtl.html +++ b/examples/webgl_loader_obj_mtl.html @@ -101,7 +101,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_pcd.html b/examples/webgl_loader_pcd.html index f8806ffcb9ea27..3fd70d6d8d5369 100644 --- a/examples/webgl_loader_pcd.html +++ b/examples/webgl_loader_pcd.html @@ -74,7 +74,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); window.addEventListener( 'keypress', keyboard ); diff --git a/examples/webgl_loader_pdb.html b/examples/webgl_loader_pdb.html index a172ffc070414c..d3594c997ea2cf 100644 --- a/examples/webgl_loader_pdb.html +++ b/examples/webgl_loader_pdb.html @@ -130,7 +130,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_ply.html b/examples/webgl_loader_ply.html index 3046c57b0fd6e6..edf9f8d14a2f17 100644 --- a/examples/webgl_loader_ply.html +++ b/examples/webgl_loader_ply.html @@ -122,7 +122,7 @@ // resize - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_prwm.html b/examples/webgl_loader_prwm.html index 27bf5980b83151..3b06e9547d587e 100644 --- a/examples/webgl_loader_prwm.html +++ b/examples/webgl_loader_prwm.html @@ -156,7 +156,7 @@ // * is automatically replaced by 'le' or 'be' depending on the client platform's endianness loadGeometry( './models/prwm/smooth-suzanne.*.prwm' ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_stl.html b/examples/webgl_loader_stl.html index d86fbadb53f1f3..fbd0063a528cd0 100644 --- a/examples/webgl_loader_stl.html +++ b/examples/webgl_loader_stl.html @@ -158,7 +158,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_svg.html b/examples/webgl_loader_svg.html index 39b5cfc70cd95e..96dc9c53e3c496 100644 --- a/examples/webgl_loader_svg.html +++ b/examples/webgl_loader_svg.html @@ -64,7 +64,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); guiData = { currentURL: 'models/svg/tiger.svg', diff --git a/examples/webgl_loader_texture_basis.html b/examples/webgl_loader_texture_basis.html index f4a5168a147bbe..9d4a0d901eded8 100644 --- a/examples/webgl_loader_texture_basis.html +++ b/examples/webgl_loader_texture_basis.html @@ -69,7 +69,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_dds.html b/examples/webgl_loader_texture_dds.html index cddab78d2064a9..6f174b23aaad80 100644 --- a/examples/webgl_loader_texture_dds.html +++ b/examples/webgl_loader_texture_dds.html @@ -153,7 +153,7 @@ renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_exr.html b/examples/webgl_loader_texture_exr.html index 8870ff2af40360..ab1ab0106cc1be 100644 --- a/examples/webgl_loader_texture_exr.html +++ b/examples/webgl_loader_texture_exr.html @@ -82,7 +82,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_hdr.html b/examples/webgl_loader_texture_hdr.html index 01487d1423061b..cf23da0faab1cb 100644 --- a/examples/webgl_loader_texture_hdr.html +++ b/examples/webgl_loader_texture_hdr.html @@ -75,7 +75,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_ktx.html b/examples/webgl_loader_texture_ktx.html index 23cd5318ffa9ea..cd290edff40976 100644 --- a/examples/webgl_loader_texture_ktx.html +++ b/examples/webgl_loader_texture_ktx.html @@ -135,7 +135,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_lottie.html b/examples/webgl_loader_texture_lottie.html index 57ceef9c58e5ff..aaba509e43caa2 100644 --- a/examples/webgl_loader_texture_lottie.html +++ b/examples/webgl_loader_texture_lottie.html @@ -63,7 +63,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_pvrtc.html b/examples/webgl_loader_texture_pvrtc.html index 9ee870a6e09849..8016432a8ad632 100644 --- a/examples/webgl_loader_texture_pvrtc.html +++ b/examples/webgl_loader_texture_pvrtc.html @@ -147,7 +147,7 @@ renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_rgbm.html b/examples/webgl_loader_texture_rgbm.html index 2ef156336dbc16..6ba77ce89838e8 100644 --- a/examples/webgl_loader_texture_rgbm.html +++ b/examples/webgl_loader_texture_rgbm.html @@ -73,7 +73,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_texture_tga.html b/examples/webgl_loader_texture_tga.html index f8156fbff69f20..a7362ff9e78597 100644 --- a/examples/webgl_loader_texture_tga.html +++ b/examples/webgl_loader_texture_tga.html @@ -88,7 +88,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_tilt.html b/examples/webgl_loader_tilt.html index 9354cc1c73400d..5f96f5b24645a3 100644 --- a/examples/webgl_loader_tilt.html +++ b/examples/webgl_loader_tilt.html @@ -56,7 +56,7 @@ controls.target.y = camera.position.y; controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_ttf.html b/examples/webgl_loader_ttf.html index 42f38f9ae519b1..7ec2bca67bf28e 100644 --- a/examples/webgl_loader_ttf.html +++ b/examples/webgl_loader_ttf.html @@ -113,7 +113,7 @@ document.addEventListener( 'keypress', onDocumentKeyPress, false ); document.addEventListener( 'keydown', onDocumentKeyDown, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_vox.html b/examples/webgl_loader_vox.html index 1f7b0d99042e53..323003028a4d28 100644 --- a/examples/webgl_loader_vox.html +++ b/examples/webgl_loader_vox.html @@ -77,7 +77,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_vrm.html b/examples/webgl_loader_vrm.html index fd103daf89ffb5..c9791e3891a4ad 100644 --- a/examples/webgl_loader_vrm.html +++ b/examples/webgl_loader_vrm.html @@ -103,7 +103,7 @@ controls.target.set( 0, 0.9, 0 ); controls.update(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // stats stats = new Stats(); diff --git a/examples/webgl_loader_vrml.html b/examples/webgl_loader_vrml.html index cce97202d9fc31..29867117f6115a 100644 --- a/examples/webgl_loader_vrml.html +++ b/examples/webgl_loader_vrml.html @@ -90,7 +90,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // diff --git a/examples/webgl_loader_vtk.html b/examples/webgl_loader_vtk.html index 1e5f6c04e989ae..297dece549d85b 100644 --- a/examples/webgl_loader_vtk.html +++ b/examples/webgl_loader_vtk.html @@ -135,7 +135,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_loader_x.html b/examples/webgl_loader_x.html index 8c4c8aa1789bc1..08b2b2854fa9b8 100644 --- a/examples/webgl_loader_x.html +++ b/examples/webgl_loader_x.html @@ -92,7 +92,7 @@ light2.position.set( - 1, - 1, - 1 ).normalize(); scene.add( light2 ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); animate(); diff --git a/examples/webgl_loader_xyz.html b/examples/webgl_loader_xyz.html index d19436a5177068..89cdc2fb08c69a 100644 --- a/examples/webgl_loader_xyz.html +++ b/examples/webgl_loader_xyz.html @@ -60,7 +60,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_lod.html b/examples/webgl_lod.html index 7aece584211669..f1e7e72f3d1cf3 100644 --- a/examples/webgl_lod.html +++ b/examples/webgl_lod.html @@ -95,7 +95,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_marchingcubes.html b/examples/webgl_marchingcubes.html index bf6744154cd905..83b6109369588c 100644 --- a/examples/webgl_marchingcubes.html +++ b/examples/webgl_marchingcubes.html @@ -114,7 +114,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials.html b/examples/webgl_materials.html index 86f9fb2905bc68..2518d1f1058288 100644 --- a/examples/webgl_materials.html +++ b/examples/webgl_materials.html @@ -104,7 +104,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_blending.html b/examples/webgl_materials_blending.html index 93c31d517544e2..045a1155c851fc 100644 --- a/examples/webgl_materials_blending.html +++ b/examples/webgl_materials_blending.html @@ -129,7 +129,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_blending_custom.html b/examples/webgl_materials_blending_custom.html index c77b5a0a6c6ae3..af8b41b9161798 100644 --- a/examples/webgl_materials_blending_custom.html +++ b/examples/webgl_materials_blending_custom.html @@ -309,7 +309,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); addImgHandler( 'img_0', 0 ); addImgHandler( 'img_1', 1 ); diff --git a/examples/webgl_materials_bumpmap.html b/examples/webgl_materials_bumpmap.html index 953021ab607804..4eaa7280baf871 100644 --- a/examples/webgl_materials_bumpmap.html +++ b/examples/webgl_materials_bumpmap.html @@ -116,7 +116,7 @@ // EVENTS document.addEventListener( 'mousemove', onDocumentMouseMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_car.html b/examples/webgl_materials_car.html index d89d65f82a9f57..2c96d6bbfd8cea 100644 --- a/examples/webgl_materials_car.html +++ b/examples/webgl_materials_car.html @@ -65,7 +65,7 @@ renderer.toneMappingExposure = 0.85; container.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); stats = new Stats(); container.appendChild( stats.dom ); diff --git a/examples/webgl_materials_channels.html b/examples/webgl_materials_channels.html index 0b53d46cb97dba..1924740dc98f55 100644 --- a/examples/webgl_materials_channels.html +++ b/examples/webgl_materials_channels.html @@ -201,7 +201,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_compile.html b/examples/webgl_materials_compile.html index c8acbdcaeb509b..db7d525e66f372 100644 --- a/examples/webgl_materials_compile.html +++ b/examples/webgl_materials_compile.html @@ -125,7 +125,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const hash = document.location.hash.substr( 1 ); diff --git a/examples/webgl_materials_cubemap.html b/examples/webgl_materials_cubemap.html index 1807295bdbaccc..aa5ecaaf55c8d0 100644 --- a/examples/webgl_materials_cubemap.html +++ b/examples/webgl_materials_cubemap.html @@ -109,7 +109,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_cubemap_balls_reflection.html b/examples/webgl_materials_cubemap_balls_reflection.html index a1ebb212e59a52..59acf62b85ff28 100644 --- a/examples/webgl_materials_cubemap_balls_reflection.html +++ b/examples/webgl_materials_cubemap_balls_reflection.html @@ -74,7 +74,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_cubemap_balls_refraction.html b/examples/webgl_materials_cubemap_balls_refraction.html index 4d6348d28ef991..37b9d23cd8392e 100644 --- a/examples/webgl_materials_cubemap_balls_refraction.html +++ b/examples/webgl_materials_cubemap_balls_refraction.html @@ -75,7 +75,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_cubemap_mipmaps.html b/examples/webgl_materials_cubemap_mipmaps.html index be7fb37df7f688..6b756798d9ba32 100644 --- a/examples/webgl_materials_cubemap_mipmaps.html +++ b/examples/webgl_materials_cubemap_mipmaps.html @@ -139,7 +139,7 @@ controls.minPolarAngle = Math.PI / 4; controls.maxPolarAngle = Math.PI / 1.5; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_cubemap_refraction.html b/examples/webgl_materials_cubemap_refraction.html index a51d89f95dd5ec..be722ea11f0451 100644 --- a/examples/webgl_materials_cubemap_refraction.html +++ b/examples/webgl_materials_cubemap_refraction.html @@ -103,7 +103,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_curvature.html b/examples/webgl_materials_curvature.html index 6dc9ee70c10681..6c1de85e6abbea 100644 --- a/examples/webgl_materials_curvature.html +++ b/examples/webgl_materials_curvature.html @@ -333,7 +333,7 @@ onWindowResize(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_displacementmap.html b/examples/webgl_materials_displacementmap.html index 834c8fddede626..9041435b33ae1c 100644 --- a/examples/webgl_materials_displacementmap.html +++ b/examples/webgl_materials_displacementmap.html @@ -205,7 +205,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_envmaps.html b/examples/webgl_materials_envmaps.html index c3338cbe57c29b..d26296b6398841 100644 --- a/examples/webgl_materials_envmaps.html +++ b/examples/webgl_materials_envmaps.html @@ -125,7 +125,7 @@ } ); gui.open(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_envmaps_exr.html b/examples/webgl_materials_envmaps_exr.html index 3c8d3aa5eac33d..7a20ac05bff8fe 100644 --- a/examples/webgl_materials_envmaps_exr.html +++ b/examples/webgl_materials_envmaps_exr.html @@ -117,7 +117,7 @@ controls.minDistance = 50; controls.maxDistance = 300; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_envmaps_hdr.html b/examples/webgl_materials_envmaps_hdr.html index 2c69e21029c8d1..e318260fb0dfa1 100644 --- a/examples/webgl_materials_envmaps_hdr.html +++ b/examples/webgl_materials_envmaps_hdr.html @@ -182,7 +182,7 @@ controls.minDistance = 50; controls.maxDistance = 300; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_envmaps_hdr_nodes.html b/examples/webgl_materials_envmaps_hdr_nodes.html index d5f0a499703156..a1f8d10e8fb496 100644 --- a/examples/webgl_materials_envmaps_hdr_nodes.html +++ b/examples/webgl_materials_envmaps_hdr_nodes.html @@ -188,7 +188,7 @@ controls.minDistance = 50; controls.maxDistance = 300; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_envmaps_pmrem_nodes.html b/examples/webgl_materials_envmaps_pmrem_nodes.html index fd7f8c6b2cc97e..3d21098e53d4e7 100644 --- a/examples/webgl_materials_envmaps_pmrem_nodes.html +++ b/examples/webgl_materials_envmaps_pmrem_nodes.html @@ -141,7 +141,7 @@ controls.minDistance = 50; controls.maxDistance = 300; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_grass.html b/examples/webgl_materials_grass.html index fad8491a65c0c2..2af733b8f5e93e 100644 --- a/examples/webgl_materials_grass.html +++ b/examples/webgl_materials_grass.html @@ -58,7 +58,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_lightmap.html b/examples/webgl_materials_lightmap.html index 0b9a09c1ff5c97..4873ed9123edca 100644 --- a/examples/webgl_materials_lightmap.html +++ b/examples/webgl_materials_lightmap.html @@ -134,7 +134,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_matcap.html b/examples/webgl_materials_matcap.html index 690bcb950a5770..5c77820c01f377 100644 --- a/examples/webgl_materials_matcap.html +++ b/examples/webgl_materials_matcap.html @@ -115,7 +115,7 @@ // drag 'n drop initDragAndDrop(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_modified.html b/examples/webgl_materials_modified.html index 6904484274d37f..41342b1e0c268e 100644 --- a/examples/webgl_materials_modified.html +++ b/examples/webgl_materials_modified.html @@ -67,7 +67,7 @@ // EVENTS - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_nodes.html b/examples/webgl_materials_nodes.html index 76af8c4ba03d11..495fd54cd8d32a 100644 --- a/examples/webgl_materials_nodes.html +++ b/examples/webgl_materials_nodes.html @@ -159,7 +159,7 @@ updatePREM(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); updateMaterial(); diff --git a/examples/webgl_materials_normalmap.html b/examples/webgl_materials_normalmap.html index 5d6d828188fc13..1b8566ce7914e6 100644 --- a/examples/webgl_materials_normalmap.html +++ b/examples/webgl_materials_normalmap.html @@ -141,7 +141,7 @@ // EVENTS document.addEventListener( 'mousemove', onDocumentMouseMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_normalmap_object_space.html b/examples/webgl_materials_normalmap_object_space.html index ccceaa0a970bf3..d1ee51832a28d8 100644 --- a/examples/webgl_materials_normalmap_object_space.html +++ b/examples/webgl_materials_normalmap_object_space.html @@ -94,7 +94,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_parallaxmap.html b/examples/webgl_materials_parallaxmap.html index e24e035510348a..78abf476d2b077 100644 --- a/examples/webgl_materials_parallaxmap.html +++ b/examples/webgl_materials_parallaxmap.html @@ -97,7 +97,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_physical_clearcoat.html b/examples/webgl_materials_physical_clearcoat.html index 4320e5c0255f5d..2561910560c48e 100644 --- a/examples/webgl_materials_physical_clearcoat.html +++ b/examples/webgl_materials_physical_clearcoat.html @@ -196,7 +196,7 @@ new OrbitControls( camera, renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_physical_reflectivity.html b/examples/webgl_materials_physical_reflectivity.html index 769f77d630499f..068ecdfeea8476 100644 --- a/examples/webgl_materials_physical_reflectivity.html +++ b/examples/webgl_materials_physical_reflectivity.html @@ -166,7 +166,7 @@ controls.minDistance = 20; controls.maxDistance = 200; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_physical_sheen.html b/examples/webgl_materials_physical_sheen.html index fe49baa0333004..92e5e11e05c643 100644 --- a/examples/webgl_materials_physical_sheen.html +++ b/examples/webgl_materials_physical_sheen.html @@ -112,7 +112,7 @@ stats.domElement.style.top = '0px'; container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const gui = new GUI(); diff --git a/examples/webgl_materials_physical_transmission.html b/examples/webgl_materials_physical_transmission.html index 6275b091a5d2ca..4fbb621a34ff5c 100644 --- a/examples/webgl_materials_physical_transmission.html +++ b/examples/webgl_materials_physical_transmission.html @@ -149,7 +149,7 @@ controls.minDistance = 10; controls.maxDistance = 150; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // diff --git a/examples/webgl_materials_shaders_fresnel.html b/examples/webgl_materials_shaders_fresnel.html index 7f95a773b3e0c5..50b6470a06b8ee 100644 --- a/examples/webgl_materials_shaders_fresnel.html +++ b/examples/webgl_materials_shaders_fresnel.html @@ -98,7 +98,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_standard.html b/examples/webgl_materials_standard.html index 8672526b3f7d5e..b261cce56bdea5 100644 --- a/examples/webgl_materials_standard.html +++ b/examples/webgl_materials_standard.html @@ -163,7 +163,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_subsurface_scattering.html b/examples/webgl_materials_subsurface_scattering.html index 7446801ee0b091..665ef5588e7560 100644 --- a/examples/webgl_materials_subsurface_scattering.html +++ b/examples/webgl_materials_subsurface_scattering.html @@ -78,7 +78,7 @@ controls.minDistance = 500; controls.maxDistance = 3000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); initMaterial(); diff --git a/examples/webgl_materials_texture_canvas.html b/examples/webgl_materials_texture_canvas.html index 375d5a031d4ac5..1d97025f22d430 100755 --- a/examples/webgl_materials_texture_canvas.html +++ b/examples/webgl_materials_texture_canvas.html @@ -53,7 +53,7 @@ renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_texture_partialupdate.html b/examples/webgl_materials_texture_partialupdate.html index 8b8c80f60f696b..c61bb7e6b63ba9 100644 --- a/examples/webgl_materials_texture_partialupdate.html +++ b/examples/webgl_materials_texture_partialupdate.html @@ -62,7 +62,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_texture_rotation.html b/examples/webgl_materials_texture_rotation.html index c5eccde65e4916..303e0717a5d358 100644 --- a/examples/webgl_materials_texture_rotation.html +++ b/examples/webgl_materials_texture_rotation.html @@ -76,7 +76,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_basic.html b/examples/webgl_materials_variations_basic.html index e393ece65fb917..823c0c184f2ca7 100644 --- a/examples/webgl_materials_variations_basic.html +++ b/examples/webgl_materials_variations_basic.html @@ -156,7 +156,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_lambert.html b/examples/webgl_materials_variations_lambert.html index a044a41328d9bb..35633be7a17c10 100644 --- a/examples/webgl_materials_variations_lambert.html +++ b/examples/webgl_materials_variations_lambert.html @@ -156,7 +156,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_phong.html b/examples/webgl_materials_variations_phong.html index 10591b2181ea55..9deba522a64735 100644 --- a/examples/webgl_materials_variations_phong.html +++ b/examples/webgl_materials_variations_phong.html @@ -163,7 +163,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_physical.html b/examples/webgl_materials_variations_physical.html index 319cd6e54b7fed..c88c2bfbbed46e 100644 --- a/examples/webgl_materials_variations_physical.html +++ b/examples/webgl_materials_variations_physical.html @@ -177,7 +177,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_standard.html b/examples/webgl_materials_variations_standard.html index ba568b0fb49569..6e68ebae8bfee6 100644 --- a/examples/webgl_materials_variations_standard.html +++ b/examples/webgl_materials_variations_standard.html @@ -180,7 +180,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_variations_toon.html b/examples/webgl_materials_variations_toon.html index 9fd28a7676fc22..2dc793e1bcf090 100644 --- a/examples/webgl_materials_variations_toon.html +++ b/examples/webgl_materials_variations_toon.html @@ -153,7 +153,7 @@ controls.minDistance = 200; controls.maxDistance = 2000; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_video.html b/examples/webgl_materials_video.html index 07ee91fb6e470b..f9ef3d6a9c3d58 100644 --- a/examples/webgl_materials_video.html +++ b/examples/webgl_materials_video.html @@ -168,7 +168,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_materials_video_webcam.html b/examples/webgl_materials_video_webcam.html index 462e6e5fe0ea3c..4a9e35b5d3c3b1 100644 --- a/examples/webgl_materials_video_webcam.html +++ b/examples/webgl_materials_video_webcam.html @@ -64,7 +64,7 @@ controls.enableZoom = false; controls.enablePan = false; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); // diff --git a/examples/webgl_materials_wireframe.html b/examples/webgl_materials_wireframe.html index 44d26c4288204d..13e20548ee5bf0 100644 --- a/examples/webgl_materials_wireframe.html +++ b/examples/webgl_materials_wireframe.html @@ -139,7 +139,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_math_obb.html b/examples/webgl_math_obb.html index 02ee6f040db9e6..e1b25629af2ad0 100644 --- a/examples/webgl_math_obb.html +++ b/examples/webgl_math_obb.html @@ -112,7 +112,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'click', onClick, false ); diff --git a/examples/webgl_math_orientation_transform.html b/examples/webgl_math_orientation_transform.html index 86fcd5fff621f8..954616954756b5 100644 --- a/examples/webgl_math_orientation_transform.html +++ b/examples/webgl_math_orientation_transform.html @@ -65,7 +65,7 @@ // - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); // @@ -73,7 +73,7 @@ } - function onResize() { + function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); diff --git a/examples/webgl_modifier_edgesplit.html b/examples/webgl_modifier_edgesplit.html index 95ae1bbc43111c..ae74a15db7b817 100644 --- a/examples/webgl_modifier_edgesplit.html +++ b/examples/webgl_modifier_edgesplit.html @@ -91,7 +91,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); new THREE.TextureLoader().load( './models/obj/cerberus/Cerberus_A.jpg', function ( texture ) { diff --git a/examples/webgl_modifier_simplifier.html b/examples/webgl_modifier_simplifier.html index 1189f9e8b742bc..5523f83b071a5a 100644 --- a/examples/webgl_modifier_simplifier.html +++ b/examples/webgl_modifier_simplifier.html @@ -74,7 +74,7 @@ } ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_modifier_tessellation.html b/examples/webgl_modifier_tessellation.html index 6a14c85813465d..a8fd4e7c57bcb0 100644 --- a/examples/webgl_modifier_tessellation.html +++ b/examples/webgl_modifier_tessellation.html @@ -183,7 +183,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_morphtargets.html b/examples/webgl_morphtargets.html index 50f75a5d0a4a9f..ba4ecba09ad5c7 100644 --- a/examples/webgl_morphtargets.html +++ b/examples/webgl_morphtargets.html @@ -67,7 +67,7 @@ const controls = new OrbitControls( camera, renderer.domElement ); controls.enableZoom = false; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_morphtargets_horse.html b/examples/webgl_morphtargets_horse.html index 3fb881242c05ce..24a152244eec0e 100644 --- a/examples/webgl_morphtargets_horse.html +++ b/examples/webgl_morphtargets_horse.html @@ -94,7 +94,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_morphtargets_sphere.html b/examples/webgl_morphtargets_sphere.html index aa42cff7a9c333..0f341029d090a9 100644 --- a/examples/webgl_morphtargets_sphere.html +++ b/examples/webgl_morphtargets_sphere.html @@ -104,7 +104,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); document.addEventListener( 'visibilitychange', onVisibilityChange ); diff --git a/examples/webgl_panorama_cube.html b/examples/webgl_panorama_cube.html index e0bda04ebd55ec..590cc8270f1e0b 100644 --- a/examples/webgl_panorama_cube.html +++ b/examples/webgl_panorama_cube.html @@ -59,7 +59,7 @@ skyBox.geometry.scale( 1, 1, - 1 ); scene.add( skyBox ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_panorama_equirectangular.html b/examples/webgl_panorama_equirectangular.html index 5d7e487cfb372f..383e85652b187b 100644 --- a/examples/webgl_panorama_equirectangular.html +++ b/examples/webgl_panorama_equirectangular.html @@ -98,7 +98,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_performance.html b/examples/webgl_performance.html index 6f50a4ff06042d..fc9772f93d5388 100644 --- a/examples/webgl_performance.html +++ b/examples/webgl_performance.html @@ -85,7 +85,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_performance_nodes.html b/examples/webgl_performance_nodes.html index 08bda971336c07..74c786242ebb27 100644 --- a/examples/webgl_performance_nodes.html +++ b/examples/webgl_performance_nodes.html @@ -197,7 +197,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_performance_static.html b/examples/webgl_performance_static.html index a14e9dfd898d23..cedbf77d7fae2b 100644 --- a/examples/webgl_performance_static.html +++ b/examples/webgl_performance_static.html @@ -83,7 +83,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_pmrem_test.html b/examples/webgl_pmrem_test.html index eb2a6f6191d26e..31b2dd0eab5338 100644 --- a/examples/webgl_pmrem_test.html +++ b/examples/webgl_pmrem_test.html @@ -50,7 +50,7 @@ document.body.appendChild( renderer.domElement ); - window.addEventListener( 'resize', onResize, false ); + window.addEventListener( 'resize', onWindowResize ); // scene @@ -169,7 +169,7 @@ } - function onResize() { + function onWindowResize() { const width = window.innerWidth; const height = window.innerHeight; diff --git a/examples/webgl_points_billboards.html b/examples/webgl_points_billboards.html index a45920bbeeae82..50bab4efa0492f 100644 --- a/examples/webgl_points_billboards.html +++ b/examples/webgl_points_billboards.html @@ -91,7 +91,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_points_dynamic.html b/examples/webgl_points_dynamic.html index 35208a01db8038..2389953545dc63 100644 --- a/examples/webgl_points_dynamic.html +++ b/examples/webgl_points_dynamic.html @@ -119,7 +119,7 @@ stats = new Stats(); container.appendChild( stats.dom ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_points_sprites.html b/examples/webgl_points_sprites.html index 9ae3f7b65fec45..23b257e6a08491 100644 --- a/examples/webgl_points_sprites.html +++ b/examples/webgl_points_sprites.html @@ -128,7 +128,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_points_waves.html b/examples/webgl_points_waves.html index 7ee65b18643b97..cad939b5372b5f 100644 --- a/examples/webgl_points_waves.html +++ b/examples/webgl_points_waves.html @@ -133,7 +133,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing.html b/examples/webgl_postprocessing.html index 2ea01d9a081cee..6f1f7f9ba32313 100644 --- a/examples/webgl_postprocessing.html +++ b/examples/webgl_postprocessing.html @@ -78,7 +78,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_3dlut.html b/examples/webgl_postprocessing_3dlut.html index c8dc3614b78a9a..9fac22dd0c02ae 100644 --- a/examples/webgl_postprocessing_3dlut.html +++ b/examples/webgl_postprocessing_3dlut.html @@ -145,7 +145,7 @@ } - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_advanced.html b/examples/webgl_postprocessing_advanced.html index 7533df18bee303..edcc215371517d 100644 --- a/examples/webgl_postprocessing_advanced.html +++ b/examples/webgl_postprocessing_advanced.html @@ -247,7 +247,7 @@ renderScene.uniforms[ "tDiffuse" ].value = composerScene.renderTarget2.texture; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_afterimage.html b/examples/webgl_postprocessing_afterimage.html index 372da537888685..8cee74d8ba5711 100644 --- a/examples/webgl_postprocessing_afterimage.html +++ b/examples/webgl_postprocessing_afterimage.html @@ -59,7 +59,7 @@ afterimagePass = new AfterimagePass(); composer.addPass( afterimagePass ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); if ( typeof TESTING !== 'undefined' ) { for ( let i = 0; i < 45; i ++ ) { render(); }; }; diff --git a/examples/webgl_postprocessing_backgrounds.html b/examples/webgl_postprocessing_backgrounds.html index d80df8170203c3..905454a376fab0 100644 --- a/examples/webgl_postprocessing_backgrounds.html +++ b/examples/webgl_postprocessing_backgrounds.html @@ -179,7 +179,7 @@ const controls = new OrbitControls( cameraP, renderer.domElement ); controls.enableZoom = false; - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_dof.html b/examples/webgl_postprocessing_dof.html index d15ba305f7fdcf..dd1249bca2f557 100644 --- a/examples/webgl_postprocessing_dof.html +++ b/examples/webgl_postprocessing_dof.html @@ -134,7 +134,7 @@ container.style.touchAction = 'none'; container.addEventListener( 'pointermove', onPointerMove, false ); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); const effectController = { diff --git a/examples/webgl_postprocessing_dof2.html b/examples/webgl_postprocessing_dof2.html index 14fa526f6ff200..c95a0d2c4635d6 100644 --- a/examples/webgl_postprocessing_dof2.html +++ b/examples/webgl_postprocessing_dof2.html @@ -275,7 +275,7 @@ matChanger(); - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_fxaa.html b/examples/webgl_postprocessing_fxaa.html index dfe138a5cc52d1..806d3b2064c0e6 100644 --- a/examples/webgl_postprocessing_fxaa.html +++ b/examples/webgl_postprocessing_fxaa.html @@ -135,7 +135,7 @@ // - window.addEventListener( 'resize', onWindowResize, false ); + window.addEventListener( 'resize', onWindowResize ); } diff --git a/examples/webgl_postprocessing_glitch.html b/examples/webgl_postprocessing_glitch.html index 08fbce8e5d6329..9d8837056af63b 100644 --- a/examples/webgl_postprocessing_glitch.html +++ b/examples/webgl_postprocessing_glitch.html @@ -101,7 +101,7 @@