diff --git a/examples/js/loaders/OBJLoader.js b/examples/js/loaders/OBJLoader.js index ab3888bef89dd50004834b6bfdbbb68c3bede7c2..67b02d96f123e141ffc0c9c6922685435444c089 100644 --- a/examples/js/loaders/OBJLoader.js +++ b/examples/js/loaders/OBJLoader.js @@ -51,7 +51,7 @@ THREE.OBJLoader.prototype = { var normals = []; var uvs = []; - function addObject(name) { + function addObject( name ) { var geometry = { vertices: [], @@ -192,7 +192,7 @@ THREE.OBJLoader.prototype = { } - addObject(""); + addObject( '' ); // v float float float var vertex_pattern = /^v\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)\s+([\d|\.|\+|\-|e|E]+)/; @@ -306,7 +306,7 @@ THREE.OBJLoader.prototype = { // or // g group_name - var name = result[1].trim(); + var name = result[ 1 ].trim(); if ( foundObjects === false ) { @@ -315,7 +315,7 @@ THREE.OBJLoader.prototype = { } else { - addObject(name); + addObject( name ); } @@ -337,7 +337,7 @@ THREE.OBJLoader.prototype = { } else { - throw new Error("Unexpected line: " + line); + throw new Error( "Unexpected line: " + line ); }