Use push() instead fo concat() for better getParameter() performance.

This commit is contained in:
Jürg Lehni 2011-03-07 02:35:06 +00:00
parent 3d7e66053c
commit 4dd4072f6b

View file

@ -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)