From dca23ce2911cdbe9b6d447ee5367860a5003e89c Mon Sep 17 00:00:00 2001 From: Ilya Furman Date: Fri, 29 Aug 2014 19:07:20 +0300 Subject: [PATCH] Carry source images crossOrigin attribute along Before canvases transformed with pixastic would be tainted because image URL was carried along but not crossorigin. --- pixastic.core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pixastic.core.js b/pixastic.core.js index ea05413..e028c93 100755 --- a/pixastic.core.js +++ b/pixastic.core.js @@ -56,6 +56,7 @@ var Pixastic = (function() { if (actions.length) { if (el.tagName.toLowerCase() == "img") { var dataImg = new Image(); + if (el.crossOrigin) dataImg.crossOrigin = el.crossOrigin; dataImg.src = el.src; if (dataImg.complete) { for (var a=0;a