浏览代码

VectorKeyframeTrack: Convert to es6 class

Ian Purvis 5 年之前
父节点
当前提交
fafd56ae1b
共有 1 个文件被更改,包括 2 次插入9 次删除
  1. 2 9
      src/animation/tracks/VectorKeyframeTrack.js

+ 2 - 9
src/animation/tracks/VectorKeyframeTrack.js

@@ -3,16 +3,9 @@ import { KeyframeTrack } from '../KeyframeTrack.js';
 /**
  * A Track of vectored keyframe values.
  */
+class VectorKeyframeTrack extends KeyframeTrack {}
 
-function VectorKeyframeTrack( name, times, values, interpolation ) {
-
-	KeyframeTrack.call( this, name, times, values, interpolation );
-
-}
-
-VectorKeyframeTrack.prototype = Object.assign( Object.create( KeyframeTrack.prototype ), {
-
-	constructor: VectorKeyframeTrack,
+Object.assign( VectorKeyframeTrack.prototype, {
 
 	ValueTypeName: 'vector'