OSDN Git Service

Lighten the _setFrame method
authordhrname <dhrname@users.sourceforge.jp>
Sun, 24 May 2015 08:51:49 +0000 (17:51 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 24 May 2015 08:51:49 +0000 (17:51 +0900)
org/w3c/dom/smil.js

index b7909b0..26d34b7 100644 (file)
@@ -904,12 +904,12 @@ base("$calcMode").up("$attribute").mix( {
     line = thisele = void 0;\r
   }\r
 }).up("$animateElement").mix( {\r
-  _setFrame: function(frame) {\r
+  _setFrame: function(currentTime) {\r
     /*activeAdは活動継続時間内での、進捗率\r
      *simpleAdは単純継続時間内での、進捗率\r
      * ゆえに、\r
-     * 再生リピート回数 = advance - simpleAd = Math.floor(advance)*/\r
-    var activeAd = (frame - this.begin) / this.activeTime,\r
+     * 再生リピート回数 = activeAd - simpleAd = Math.floor(activeAd)*/\r
+    var activeAd = (currentTime - this.begin) / this.activeTime,\r
         simpleAd = activeAd - Math.floor(activeAd);\r
     this.element.setAttributeNS(null, this.attrName, this._tocall(simpleAd));\r
   },\r