From 84421abbce822e1fc0145cbf983ee6410dd2513a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 5 Apr 2016 12:25:24 -0700 Subject: [PATCH] Set crossOrigin before src on image objects. Reason: https://bugs.chromium.org/p/chromium/issues/detail?id=341047 --- src/item/Raster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index 018c34e2..e53325a7 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -371,9 +371,9 @@ var Raster = Item.extend(/** @lends Raster# */{ setSource: function(src) { var image = new window.Image(), crossOrigin = this._crossOrigin; - image.src = src; if (crossOrigin) image.crossOrigin = crossOrigin; + image.src = src; this.setImage(image); },