mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-29 07:09:45 -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/basic
|
@ -425,7 +425,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
_transformBounds: function(bounds, dest, dontNotify) {
|
||||
var coords = this._transformCorners(bounds),
|
||||
min = coords.slice(0, 2),
|
||||
max = coords.slice(0);
|
||||
max = coords.slice();
|
||||
for (var i = 2; i < 8; i++) {
|
||||
var val = coords[i],
|
||||
j = i & 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue