Browse Source

Protect PropertyMixer against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
3503dba111
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/animation/PropertyMixer.js

+ 4 - 4
src/animation/PropertyMixer.js

@@ -56,7 +56,7 @@ function PropertyMixer( binding, typeName, valueSize ) {
 
 }
 
-PropertyMixer.prototype = {
+Object.assign( PropertyMixer.prototype, {
 
 	constructor: PropertyMixer,
 
@@ -118,7 +118,7 @@ PropertyMixer.prototype = {
 			var originalValueOffset = stride * 3;
 
 			this._mixBufferRegion(
-					buffer, offset, originalValueOffset, 1 - weight, stride );
+				buffer, offset, originalValueOffset, 1 - weight, stride );
 
 		}
 
@@ -188,7 +188,7 @@ PropertyMixer.prototype = {
 	_slerp: function( buffer, dstOffset, srcOffset, t, stride ) {
 
 		Quaternion.slerpFlat( buffer, dstOffset,
-				buffer, dstOffset, buffer, srcOffset, t );
+			buffer, dstOffset, buffer, srcOffset, t );
 
 	},
 
@@ -206,7 +206,7 @@ PropertyMixer.prototype = {
 
 	}
 
-};
+} );
 
 
 export { PropertyMixer };