Skip to content
Browse files

"big performance boost ;o)"

  • Loading branch information...
1 parent 0fc5f64 commit 1ab9941df66a6391b59e4b58364aa06bf90404f5 André Fiedler committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Generate.js
View
4 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,

0 comments on commit 1ab9941

Please sign in to comment.
Something went wrong with that request. Please try again.