[canviz] r480 committed - combine two push() calls into one

1 view
Skip to first unread message

can...@googlecode.com

unread,
Sep 6, 2013, 9:50:53 PM9/6/13
to canviz-...@googlegroups.com
Revision: 480
Author: ryandesign.com
Date: Sat Sep 7 01:50:39 2013 UTC
Log: combine two push() calls into one

http://code.google.com/p/canviz/source/detail?r=480

Modified:
/path/trunk/src/Bezier.js

=======================================
--- /path/trunk/src/Bezier.js Sat Aug 24 07:47:16 2013 UTC
+++ /path/trunk/src/Bezier.js Sat Sep 7 01:50:39 2013 UTC
@@ -268,8 +268,7 @@
var pointsLength = this.points.length;
for (var i = 1 == this.order ? 0 : 1; i < pointsLength; ++i) {
var point = this.points[i];
- coords.push(point.x);
- coords.push(point.y);
+ coords.push(point.x, point.y);
}
fn.apply(ctx, coords);
}
Reply all
Reply to author
Forward
0 new messages