Fix blend mode detection syntax.

This commit is contained in:
Jürg Lehni 2013-06-26 15:05:43 -07:00
parent 1126c699d2
commit a908556956

View file

@ -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;