Simply call slice() instead of slice(0).

This commit is contained in:
Jürg Lehni 2013-04-06 18:39:17 +02:00
parent 4bc3882c82
commit a0b903e49c
3 changed files with 4 additions and 4 deletions
src/path

View file

@ -579,7 +579,7 @@ statics: {
getBounds: function(v) {
var min = v.slice(0, 2), // Start with values of point1
max = min.slice(0), // clone
max = min.slice(), // clone
roots = new Array(2);
for (var i = 0; i < 2; i++)
Curve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6],