OSDN Git Service

Lighten the setFrame method
authordhrname <dhrname@users.sourceforge.jp>
Sun, 9 Oct 2016 13:45:07 +0000 (22:45 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 9 Oct 2016 13:45:07 +0000 (22:45 +0900)
org/w3c/dom/smil.js

index c73ebe9..05893cd 100644 (file)
@@ -211,10 +211,10 @@ base("$frame").mix ( {
       var state = this.updateState(f).state;\r
       /*開始と終了状態のときに、beginイベントとendイベントを呼び出しておいて、\r
        * 次の状態に遷移する*/\r
-      if (state === this.BEGINNING) {\r
+      if (state === /*this.BEGINNING*/ 1) {\r
         this.updateState(f);\r
-      } else if (state === this.ENDING) {\r
-        if (this.updateState(f).state === this.BEGINNING) {\r
+      } else if (state === /*this.ENDING*/ 3) {\r
+        if (this.updateState(f).state === /*this.BEGINNING*/ 1) {\r
           /*再生中だった場合*/\r
           this.updateState(f);\r
         }\r