mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-28 06:39:33 -04:00
Simply call slice() instead of slice(0).
This commit is contained in:
parent
4bc3882c82
commit
a0b903e49c
3 changed files with 4 additions and 4 deletions
src/path
|
@ -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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue