Skip to content

Commit 30d51e5

Browse files
committed
Moved closePath to Shape
1 parent 4b1c0eb commit 30d51e5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/gameobjects/shape/Shape.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ var Shape = new Class({
120120
this.isStroked = true;
121121
}
122122

123+
return this;
124+
},
125+
126+
setClosePath: function (value)
127+
{
128+
this.closePath = value;
129+
123130
return this;
124131
}
125132

src/gameobjects/shape/curve/Curve.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ var Curve = new Class({
8080
return this.updateData();
8181
},
8282

83-
setClosePath: function (value)
84-
{
85-
this.closePath = value;
86-
87-
return this;
88-
},
89-
9083
updateData: function ()
9184
{
9285
var bounds = this._curveBounds;

0 commit comments

Comments
 (0)