From 14338a95591b30da732011c16582015746097715 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Wed, 16 Apr 2014 13:03:02 -0600 Subject: [PATCH] Fix for #1237 Only set crossorigin on the element if something is specified --- src/shapes/image.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/image.class.js b/src/shapes/image.class.js index 89e09a22..c61d0d7a 100644 --- a/src/shapes/image.class.js +++ b/src/shapes/image.class.js @@ -374,7 +374,7 @@ options || (options = { }); this.setOptions(options); this._setWidthHeight(options); - if (this._element) { + if (this._element && this.crossOrigin) { this._element.crossOrigin = this.crossOrigin; } },