Explorar o código

GLTFExporter: Whitespace cleanup.

Don McCurdy %!s(int64=7) %!d(string=hai) anos
pai
achega
d8240b3780
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      examples/js/exporters/GLTFExporter.js

+ 4 - 4
examples/js/exporters/GLTFExporter.js

@@ -360,11 +360,11 @@ THREE.GLTFExporter.prototype = {
 
 			}
 
-			return new Promise( function (resolve) {
+			return new Promise( function ( resolve ) {
 
 				var reader = new window.FileReader();
 				reader.readAsArrayBuffer( blob );
-				reader.addEventListener('loadend', function () {
+				reader.onloadend = function () {
 
 					var buffer = getPaddedArrayBuffer( reader.result );
 
@@ -380,7 +380,7 @@ THREE.GLTFExporter.prototype = {
 
 					resolve( outputJSON.bufferViews.length - 1 );
 
-				} );
+				};
 
 			} );
 
@@ -1588,4 +1588,4 @@ THREE.GLTFExporter.prototype = {
 
 	}
 
-};
+};