Fix Raster#clone.

This commit is contained in:
Jonathan Puckey 2011-05-21 18:02:09 +02:00
parent f2e01a8837
commit 572b62590e

View file

@ -42,9 +42,9 @@ var Raster = this.Raster = Item.extend({
image = CanvasProvider.getCanvas(this._size);
image.getContext('2d').drawImage(this._canvas, 0, 0);
}
var raster = new Raster(image);
raster.matrix = this.matrix.clone();
return raster;
var copy = new Raster(image);
copy.matrix = this.matrix.clone();
return this._clone(copy);
},
/**