OSDN Git Service

Remove the state property from the
authordhrname <dhrname@users.sourceforge.jp>
Mon, 17 Oct 2016 12:06:21 +0000 (21:06 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Mon, 17 Oct 2016 12:06:21 +0000 (21:06 +0900)
org/w3c/dom/smil.js

index 479ece2..b98bd2e 100644 (file)
@@ -1305,17 +1305,10 @@ base("$calcMode").up("$attribute").mix( {
   to: "",\r
   \r
   /*initメソッドで使われるアニメーション関数*/\r
-  _setFrame: function (frame) {\r
-    this.state = "playing";\r
+  _setFrame: function () {\r
     this.setAttribute(this.to);\r
   },\r
   \r
-  /*アニメーション中かどうかの判別\r
-   * 1, idling アニメがまだ始まっていない待機状態 (規定値)\r
-   * 2, playing アニメーションの再生中\r
-   */\r
-  state: "idling",\r
-  \r
   /*開始を設定されたタイムライン ($beginオブジェクト)*/\r
   timeline: base("$frame").$begin,\r
   \r
@@ -1367,9 +1360,9 @@ base("$calcMode").up("$attribute").mix( {
       line.$list.addEvent("play", this._setFrame.bind(this));\r
       line.$list.addEvent("end", this._setEndFrame.bind(this));\r
       base("$frame").addLine(line.$list);\r
+      /*アニメーションが再起動する可能性もあるため、$listのstateプロパティはここで初期化*/\r
+      line.$list.state = this.$list.WAITING;\r
     }\r
-    /*アニメーションが再起動する可能性もあるため、stateプロパティはここで初期化*/\r
-    this.state = "idling";\r
     line = thisele = void 0;\r
   }\r
 }).up("$animateElement").mix( {\r
@@ -1417,7 +1410,6 @@ base("$calcMode").up("$attribute").mix( {
         advance = duration ? ( (currentTime - line.begin) % duration ) / duration\r
                     : 0;\r
     this.setAttribute(this.tocall(advance));\r
-    this.state = "playing";\r
     line = duration = advance = void 0;\r
   },\r
   \r