From fc9a8533e77af36517b9ed26b02456e4e5b219d2 Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Fri, 9 Mar 2012 23:23:17 +0000 Subject: [PATCH] "big performance boost ;o)" --- src/Generate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Generate.js b/src/Generate.js index a437d96..07d5d04 100644 --- a/src/Generate.js +++ b/src/Generate.js @@ -247,7 +247,7 @@ _html2canvas.Generate.parseGradient = function(css, bounds) { gradient.rx = gradient.ry = Math.min(tl, tr, br, bl); break; case 'farthest-side': - if(m2[0] == 'circle'){ + if(m2[0] === 'circle'){ gradient.rx = gradient.ry = Math.max( gradient.cx, gradient.cy, @@ -270,7 +270,7 @@ _html2canvas.Generate.parseGradient = function(css, bounds) { break; case 'closest-side': case 'contain': // is equivalent to closest-side - if(m2[0] == 'circle'){ + if(m2[0] === 'circle'){ gradient.rx = gradient.ry = Math.min( gradient.cx, gradient.cy,