From 2d3855fa2496c3c07c781b46e4eafb1956c43961 Mon Sep 17 00:00:00 2001 From: dhrname Date: Sat, 16 Apr 2016 23:17:32 +0900 Subject: [PATCH] Lighten the tocall method --- org/w3c/dom/smil.js | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index d9563ab..c696dd8 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -1183,16 +1183,6 @@ base("$calcMode").up("$attribute").mix( { /*進捗率advanceから、呈示値を求める*/ tocall: function(advance) { var tf = this.funcs; - if (this.mode === "discrete") { - var result = ""; - for (var i=0;i= tfi.startKeyTime) { - result = tfi(advance); - } - } - return result; - } for (var i=0;i= tfi.startKeyTime) { + result = tfi(advance); + } + } + console.log(this.mode); + advance = tf = tfi = void 0; + return result; + }; + } else { + this.tocall = this._tocall || this.tocall; + } + return s; } + /*initメソッドに追加処理 * onメソッドについては、base.jsを参照のこと*/ -- 2.11.0