Browse Source

SVGLoader: Clean up.

Mr.doob 7 years ago
parent
commit
0be64f57c0
1 changed files with 5 additions and 2 deletions
  1. 5 2
      examples/js/loaders/SVGLoader.js

+ 5 - 2
examples/js/loaders/SVGLoader.js

@@ -665,9 +665,12 @@ THREE.SVGLoader.prototype = {
 
 				if ( number.indexOf( '.' ) !== number.lastIndexOf( '.' ) ) {
 
-					var split = number.split('.');
-					for(var s = 2; s < split.length; s++) {
+					var split = number.split( '.' );
+
+					for ( var s = 2; s < split.length; s ++ ) {
+
 						array.splice( i + s - 1, 0, '0.' + split[ s ] );
+
 					}
 
 				}