From a908556956996aea32992920bc5185c2fabdaaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 26 Jun 2013 15:05:43 -0700 Subject: [PATCH] Fix blend mode detection syntax. --- src/canvas/BlendMode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canvas/BlendMode.js b/src/canvas/BlendMode.js index 40e7223b..707d6972 100644 --- a/src/canvas/BlendMode.js +++ b/src/canvas/BlendMode.js @@ -232,7 +232,7 @@ var BlendMode = new function() { if (ctx.globalCompositeOperation === mode) { ctx.fillStyle = darken ? '#a00' : '#300'; ctx.fillRect(0, 0, 1, 1); - ok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken ? 170 : 51; + ok = ctx.getImageData(0, 0, 1, 1).data[0] !== (darken ? 170 : 51); } ctx.restore(); return ok;