From ec82152b78eb0dc0cf4a294562b7722397a610f0 Mon Sep 17 00:00:00 2001 From: dhrname Date: Mon, 12 Oct 2015 17:58:58 +0900 Subject: [PATCH] Support the object --- org/w3c/dom/smil.js | 4 ++-- tool/Spec/spec/SvgDomSpec.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 83b73fa..95f466f 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -1297,7 +1297,7 @@ if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Anim if (window.requestAnimationFrame && requestAnimationFrame) { /*IE11などSMILアニメーションに対応していないブラウザ用*/ (function(frame) { - var $f = base("$frame"); + var $f = base("$frame").$svgEvent; $f.startTime = Date.now(); requestAnimationFrame(step); function step() { @@ -1308,7 +1308,7 @@ if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Anim })(-1) } else { setInterval( (function(frame) { - var $f = base("$frame"); + var $f = base("$frame").$svgEvent; $f.startTime = Date.now(); return function () { frame++; diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 971595b..98b64af 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -4294,7 +4294,6 @@ describe("SMIL Animation Spec", function() { ele.addEventListener("endEvent", function(evt) { expect(evt.target).toBe(ele); expect(isFiredBeginEvent).toBeTruthy(); - done(); } ); frame.setFrame(0); expect(frame.first).toBeNull(); -- 2.11.0