mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix Raster#clone.
This commit is contained in:
parent
f2e01a8837
commit
572b62590e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue