瀏覽代碼

Path: Add constructor to definition

Mugen87 7 年之前
父節點
當前提交
5788c51b58
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/extras/core/Path.js

+ 2 - 0
src/extras/core/Path.js

@@ -29,6 +29,8 @@ function Path( points ) {
 
 Path.prototype = Object.assign( Object.create( CurvePath.prototype ), {
 
+	constructor: Path,
+
 	setFromPoints: function ( points ) {
 
 		this.moveTo( points[ 0 ].x, points[ 0 ].y );