OSDN Git Service

Lighten the setFrame method
authordhrname <dhrname@users.sourceforge.jp>
Sun, 25 Oct 2015 13:47:08 +0000 (22:47 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sun, 25 Oct 2015 13:47:08 +0000 (22:47 +0900)
org/w3c/dom/smil.js

index d6e8c71..cfdfb55 100644 (file)
@@ -1275,7 +1275,8 @@ base("$frame").up("$svgEvent").mix( {
   \r
   setFrame: function (num) {\r
     var timelines = this.timelines,\r
-        lastTimeLine = timelines[timelines.length-1];\r
+        lastTimeLine = timelines[timelines.length-1],\r
+        s = this.$frame.setFrame(num);\r
     /*キャッシュのlastTimeLineプロパティを使って、再びスケジュールの計算をさせないようにする*/\r
     if (this.lastTimeLine !== lastTimeLine) {\r
       this.lastTimeLine = lastTimeLine;\r
@@ -1326,7 +1327,7 @@ base("$frame").up("$svgEvent").mix( {
       obj = obj.next;\r
     }\r
     obj = first = frame = target = void 0;\r
-    return this.$frame.setFrame(num);\r
+    return s;\r
   }\r
 } );\r
 \r