OSDN Git Service

Support a try-catch statement on the step function
authordhrname <dhrname@users.sourceforge.jp>
Tue, 27 Oct 2015 14:11:12 +0000 (23:11 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Tue, 27 Oct 2015 14:11:12 +0000 (23:11 +0900)
org/w3c/dom/smil.js

index cd31d86..5be53b6 100644 (file)
@@ -1364,9 +1364,10 @@ if (!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Anim
       requestAnimationFrame(step);\r
       function step() {\r
         frame++;\r
-        \r
+        try {\r
           $f.setFrame(frame);\r
-        \r
+        } catch(e) {\r
+        }\r
         requestAnimationFrame(step);\r
       };\r
     })(-1)\r