From 667b79555e600718aa647e028b7838a5e9ce95f1 Mon Sep 17 00:00:00 2001 From: Garrett Johnson Date: Sun, 26 Aug 2018 19:42:44 -0700 Subject: [PATCH] Fix `this` reference, remove unused variable --- examples/js/Volume.js | 1 - examples/js/modifiers/SimplifyModifier.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/js/Volume.js b/examples/js/Volume.js index 4b0d175270..3f7af1cb70 100644 --- a/examples/js/Volume.js +++ b/examples/js/Volume.js @@ -357,7 +357,6 @@ THREE.Volume.prototype = { } ); var argumentsWithInversion = [ 'volume.xLength-1-', 'volume.yLength-1-', 'volume.zLength-1-' ]; - var arguments = [ 'i', 'j', 'k' ]; var argArray = [ iDirection, jDirection, kDirection ].map( function( direction, n ) { return ( direction.dot( base[ n ] ) > 0 ? '' : argumentsWithInversion[ n ] ) + ( direction === axisInIJK ? 'IJKIndex' : direction.argVar ) diff --git a/examples/js/modifiers/SimplifyModifier.js b/examples/js/modifiers/SimplifyModifier.js index 4e099e8c58..b67239cce8 100644 --- a/examples/js/modifiers/SimplifyModifier.js +++ b/examples/js/modifiers/SimplifyModifier.js @@ -167,7 +167,7 @@ THREE.SimplifyModifier = function () {}; if ( f.v3 ) removeFromArray( f.v3.faces, f ); // TODO optimize this! - var vs = [ this.v1, this.v2, this.v3 ]; + var vs = [ f.v1, f.v2, f.v3 ]; var v1, v2; for ( var i = 0; i < 3; i ++ ) { -- GitLab