mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use push() instead fo concat() for better getParameter() performance.
This commit is contained in:
parent
3d7e66053c
commit
4dd4072f6b
1 changed files with 3 additions and 2 deletions
|
@ -172,8 +172,9 @@ var Curve = this.Curve = Base.extend({
|
|||
},
|
||||
|
||||
getParameter: function(length) {
|
||||
return Curve.getParameter.apply(Curve,
|
||||
this.getCurveValues().concat(length));
|
||||
var values = this.getCurveValues();
|
||||
values.push(length)
|
||||
return Curve.getParameter.apply(Curve, values);
|
||||
},
|
||||
|
||||
// TODO: getParameter(point, precision)
|
||||
|
|
Loading…
Reference in a new issue