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/basic

View file

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