Explorar el Código

Set more readable switch statement without tricky comma

Tristan Valcke hace 9 años
padre
commit
67ebb5057a
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. 8 4
      src/animation/PropertyMixer.js

+ 8 - 4
src/animation/PropertyMixer.js

@@ -20,14 +20,18 @@ function PropertyMixer( binding, typeName, valueSize ) {
 
 	switch ( typeName ) {
 
-		case 'quaternion':			mixFunction = this._slerp;		break;
+		case 'quaternion':
+			mixFunction = this._slerp;
+			break;
 
 		case 'string':
 		case 'bool':
+			bufferType = Array;
+			mixFunction = this._select;
+			break;
 
-			bufferType = Array,		mixFunction = this._select;		break;
-
-		default:					mixFunction = this._lerp;
+		default:
+			mixFunction = this._lerp;
 
 	}
 

粤ICP备19079148号