From 71d192e905870a6099d4f20855a33bf7587aa5e6 Mon Sep 17 00:00:00 2001 From: Trevor Blackwell Date: Mon, 25 Sep 2017 10:08:20 -0700 Subject: [PATCH] Fix indenting and copy/paste bug --- examples/js/loaders/VTKLoader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/loaders/VTKLoader.js b/examples/js/loaders/VTKLoader.js index a07ff0a09f..ba3456fd58 100644 --- a/examples/js/loaders/VTKLoader.js +++ b/examples/js/loaders/VTKLoader.js @@ -851,7 +851,7 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, { if ( ele[ '#text' ] ) { - var content = ele[ '#text' ].split( /s+/ ).filter( function ( el ) { + var content = ele[ '#text' ].split( /\s+/ ).filter( function ( el ) { if ( el !== '' ) return el; @@ -872,9 +872,9 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, { var txt = new Float32Array( content ); - } else if ( ele.attributes.type == 'Int32' ) { + } else if ( ele.attributes.type == 'Int32' ) { - var txt = new Int32Array( content ); + var txt = new Int32Array( content ); } else if ( ele.attributes.type === 'Int64' ) { -- GitLab