OSDN Git Service

Modify the dicrete mode
authordhrname <dhrname@users.sourceforge.jp>
Mon, 4 Apr 2016 12:38:16 +0000 (21:38 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Mon, 4 Apr 2016 12:38:16 +0000 (21:38 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index d8134cd..93fd59c 100644 (file)
@@ -535,7 +535,12 @@ base("$from").of( {
         return "";\r
       } else if (!this.from.length) {\r
         /*discreteのために、this.stringに数値が入っていない場合の対処*/\r
-        return this.from.string;\r
+        if (t === 1) {\r
+          /*終端の場合は、自分自身の文字列を返す*/\r
+          return this.string;\r
+        } else {\r
+          return this.from.string;\r
+        }\r
       }\r
       var str = "",\r
           numList = this.numList,\r
index 248faf9..a7a7c8b 100644 (file)
@@ -2061,7 +2061,7 @@ describe("SMIL Animation Spec", function() {
       } );\r
     } );\r
   } );\r
-    describe("A $animateElemenet object", function() {\r
+    describe("A $animateElement object", function() {\r
       describe("An init method", function() {\r
         var $animate, ele, frame;\r
         beforeEach( function() {\r