[Sie-announce] SIEコード [1986]

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 9月 4日 (土) 23:15:16 JST


Revision: 1986
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1986
Author:   dhrname
Date:     2010-09-04 23:15:16 +0900 (Sat, 04 Sep 2010)

Log Message:
-----------


Modified Paths:
--------------
    branches/06x/061/org/w3c/dom/svg.js

Modified: branches/06x/061/org/w3c/dom/svg.js
===================================================================
--- branches/06x/061/org/w3c/dom/svg.js	2010-09-04 14:10:46 UTC (rev 1985)
+++ branches/06x/061/org/w3c/dom/svg.js	2010-09-04 14:15:16 UTC (rev 1986)
@@ -4274,8 +4274,13 @@
 function SVGSetElement(){
   SVGAnimationElement.apply(this);
   NAIBU.Clip[NAIBU.Clip.length] = this;
+  this._to = "";
   this.addEventListener("DOMAttrModified", function(evt) {
     var tar = evt.target, name = evt.attrName;
+    if (name === "to") {
+      tar._to = evt.newValue;
+    }
+    tar = name = null;
   }, false);
   this.addEventListener("beginEvent", function(evt) {
     var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName");
@@ -4283,7 +4288,7 @@
       var tta = tar.targetElement[attrName];
       if (!!tta) {
         var base = tta.baseVal;
-        tar.targetElement.setAttributeNS(null, attrName, tar.getAttributeNS(null, "to"));
+        tar.targetElement.setAttributeNS(null, attrName, tar._to);
         /*変化値はanimValプロパティに収納しておき、
          *変化する前の、元の値はbaseValプロパティに再び収納しておく
          */




Sie-announce メーリングリストの案内
Back to archive index