OSDN Git Service

Remove an if syntax from the _setEndFrame method
authordhrname <dhrname@users.sourceforge.jp>
Thu, 28 May 2015 12:59:06 +0000 (21:59 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Thu, 28 May 2015 12:59:06 +0000 (21:59 +0900)
org/w3c/dom/smil.js

index eab41e0..d6075a9 100644 (file)
@@ -857,12 +857,10 @@ base("$calcMode").up("$attribute").mix( {
               } else {\r
                 this.isEnd = true;\r
                 /*アニメーションを凍結せずに、もとに戻す*/\r
-                if (this.fill === "remove") {\r
-                  if (this.isDefault) {\r
-                    this.element.setAttributeNS(null, this.attrName, this.defaultValue);\r
-                  } else {\r
-                    this.element.removeAttributeNS(null, this.attrName);\r
-                  }\r
+                if ((this.fill === "remove") && this.isDefault) {\r
+                  this.element.setAttributeNS(null, this.attrName, this.defaultValue);\r
+                } else if (this.fill === "remove"){\r
+                  this.element.removeAttributeNS(null, this.attrName);\r
                 }\r
                 return false;\r
               }\r