From f1821c11a5c1302c5796c00a1230d2d7bf2abe86 Mon Sep 17 00:00:00 2001 From: dhrname Date: Fri, 13 Feb 2015 21:18:31 +0900 Subject: [PATCH] Modify a listener method --- org/w3c/dom/smil.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 06bd408..4f13e51 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -278,6 +278,7 @@ base("$frame").mix ( { this.begin = Math.floor( this.begin * this.fpms); var s = this.$activate.up(); s.begin = this.begin; + s.dur = this.dur; s.end = s.end.up(); this.$$activate = s; if (event) { @@ -291,7 +292,11 @@ base("$frame").mix ( { /*イベントのリスナーとして、parseメソッドで使う*/ listener: function(evt) { - var s = this.$$activate; + var s = this.$activate.up(); + s.begin = this.begin; + s.dur = this.dur; + s.end = s.end.up(); + this.$$activate = s; s.timeStamp = evt.timeStamp; this.activeTime = s.call(); this.addLine(this); -- 2.11.0