From 6168842a2a7505fcb6d1979ccd85a05b06178d46 Mon Sep 17 00:00:00 2001 From: gaoshiming Date: Mon, 4 Sep 2017 17:16:32 +0800 Subject: [PATCH] in IE8 it is undefined, not null fix #951,#1037 --- dev/raphael.vml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/raphael.vml.js b/dev/raphael.vml.js index f287632d..da2e1bfa 100644 --- a/dev/raphael.vml.js +++ b/dev/raphael.vml.js @@ -490,7 +490,7 @@ define(["./raphael.core"], function(R) { skew.matrix = Str(matrix); skew.offset = matrix.offset(); } - if (oldt !== null) { // empty string value is true as well + if (oldt != null) { // empty string value is true as well; oldt maybe undefined, use `!= null` instead this._.transform = oldt; R._extractTransform(this, oldt); }