OSDN Git Service

Lighten the object
authordhrname <dhrname@users.sourceforge.jp>
Wed, 11 Feb 2015 12:36:36 +0000 (21:36 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Wed, 11 Feb 2015 12:36:36 +0000 (21:36 +0900)
org/w3c/dom/smil.js

index 9db9c85..f5adc1e 100644 (file)
@@ -340,13 +340,13 @@ base("$frame").mix ( {
       if (indef(this)) {\r
         return null;\r
       }\r
-      if (dur && !isIndefRepeatCount && this.repeatCount) {\r
+      if (dur && this.repeatCount && !isIndefRepeatCount) {\r
         actList.push( dur * this.repeatCount );\r
       }\r
-      if (!isIndefRepeatDur && this.repeatDur) {\r
+      if (this.repeatDur && !isIndefRepeatDur) {\r
         actList.push( Math.floor( this.offset(this.repeatDur) * this.fpms) );\r
       }\r
-      if (!isIndefEnd && this.end) {\r
+      if (this.end && !isIndefEnd) {\r
         actList.push( this.end - this.begin );\r
       }\r
       if (dur && !this.repeatCount && !this.repeatDur) {\r