瀏覽代碼

Add missing semicolons in GLTFLoader, and return is unnecessary as the last statement in a function with no return value

Tristan Valcke 8 年之前
父節點
當前提交
d40ca84e76
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      examples/js/loaders/GLTFLoader.js

+ 2 - 3
examples/js/loaders/GLTFLoader.js

@@ -175,7 +175,7 @@ var GLTFShader = function( targetNode, allNodes ) {
 
 	this._m4 = new THREE.Matrix4();
 
-}
+};
 
 // Update - update all the uniform values
 GLTFShader.prototype.update = function( scene, camera ) {
@@ -274,7 +274,7 @@ GLTFAnimation.prototype.createInterpolators = function( interps ) {
 
 	}
 
-}
+};
 
 // Start/stop
 GLTFAnimation.prototype.play = function() {
@@ -315,7 +315,6 @@ GLTFAnimation.prototype.update = function() {
 
 		}.bind( this ));
 		this.stop();
-		return;
 
 	} else {