diff --git a/src/item/Raster.js b/src/item/Raster.js index aebd4679..c35c6198 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -369,9 +369,9 @@ var Raster = Item.extend(/** @lends Raster# */{ }, setSource: function(src) { - image = new window.Image(); + var image = new window.Image(), + crossOrigin = this._crossOrigin; image.src = paper.resolvePath(src); - var crossOrigin = this._crossOrigin; if (crossOrigin) image.crossOrigin = crossOrigin; this.setImage(image);