OSDN Git Service

SVGAnimateElementのvar文を整理
authordhrname <dhrname@users.sourceforge.jp>
Mon, 9 Jan 2012 10:59:16 +0000 (19:59 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Mon, 9 Jan 2012 10:59:16 +0000 (19:59 +0900)
org/w3c/dom/svg.js

index 712b8b5..e6b124d 100644 (file)
@@ -5543,7 +5543,9 @@ function SVGAnimateElement(){
     var attrName = tar.getAttributeNS(null, "attributeName"), newAttr = tar.targetElement.attributes.getNamedItemNS(null, attrName);
     var ttr = tar.targetElement, tta = ttr[attrName];
     tar._frame = function() {
-      var d = tar.getSimpleDuration() * 0.8, n = tar._valueList.length-1, tg = tar.getCurrentTime();
+      var d = tar.getSimpleDuration() * 0.8,
+          n = tar._valueList.length-1,
+          tg = tar.getCurrentTime();
       if ((n !== -1) && (d !== 0) && (tg <= d)) {
         if (tar._isDiscrete) {
           ++n; //discreteモードは他のモードに比べて、分割数が多いことに注意