mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Remove CurveLocation#getPath() again as its functionality is provided by #getItem() already.
This commit is contained in:
parent
ebc9bc88c4
commit
cc06a6f128
1 changed files with 2 additions and 9 deletions
|
@ -54,9 +54,9 @@ CurveLocation = Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The path on which the location is defined.
|
* The item this curve belongs to, if any.
|
||||||
*/
|
*/
|
||||||
getPath: function() {
|
getItem: function() {
|
||||||
return this._curve && this._curve.getPath();
|
return this._curve && this._curve.getPath();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -111,13 +111,6 @@ CurveLocation = Base.extend({
|
||||||
return this._point;
|
return this._point;
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
|
||||||
* The item this curve belongs to, if any.
|
|
||||||
*/
|
|
||||||
getItem: function() {
|
|
||||||
return this._curve && this._curve.getPath();
|
|
||||||
},
|
|
||||||
|
|
||||||
toString: function() {
|
toString: function() {
|
||||||
var parts = [];
|
var parts = [];
|
||||||
if (this._point)
|
if (this._point)
|
||||||
|
|
Loading…
Reference in a new issue