From b6d6f4467877d42134800ab21c08a94704b119fc Mon Sep 17 00:00:00 2001 From: Obexer Christoph Date: Sun, 26 Feb 2012 23:04:46 +0100 Subject: [PATCH] make FlashCanvas check closure compiler friendly --- src/Renderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Renderer.js b/src/Renderer.js index 046d723..bd09493 100644 --- a/src/Renderer.js +++ b/src/Renderer.js @@ -446,9 +446,9 @@ html2canvas.Renderer = function(parseQueue, opts){ })(script, function(){ - if (typeof FlashCanvas !== "undefined") { + if (typeof window.FlashCanvas !== "undefined") { h2clog("html2canvas: Renderer: Flashcanvas initialized"); - FlashCanvas.initElement( canvas ); + window.FlashCanvas.initElement( canvas ); canvasRenderer(parseQueue); } });