svnno****@sourc*****
svnno****@sourc*****
2010年 9月 4日 (土) 23:10:46 JST
Revision: 1985 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1985 Author: dhrname Date: 2010-09-04 23:10:46 +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:02 UTC (rev 1984) +++ branches/06x/061/org/w3c/dom/svg.js 2010-09-04 14:10:46 UTC (rev 1985) @@ -4274,9 +4274,9 @@ function SVGSetElement(){ SVGAnimationElement.apply(this); NAIBU.Clip[NAIBU.Clip.length] = this; - this.addEventListener("DOMAttrModified", function(evt){ + this.addEventListener("DOMAttrModified", function(evt) { var tar = evt.target, name = evt.attrName; - } + }, false); this.addEventListener("beginEvent", function(evt) { var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName"); if (tar.targetElement) { @@ -4292,14 +4292,21 @@ } else { var style = tar.ownerDocument.getOverrideStyle(tar.targetElement, ""); style.setProperty(attrName, tar.getAttributeNS(null, "to"), null); + style = null; } } + evt = tar = attrName = null; }, false); this.addEventListener("endEvent", function(evt) { - var tar = evt.target; + var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName"), style = tar.ownerDocument.defaultView.geComputedStyle(tar.targetElment, ""); + tar.style.setProperty(attrName, style.getPropertyValue(attrName), null); + var evtt = tar.ownerDocument.createEvent("MutationEvents"); + evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); + tar.dispatchEvent(evtt); + evtt = null; }, false); this.addEventListener("repeatEvent", function(evt) { - var tar = evt.target, style = tar.ownerDocument.defaultView.geComputedStyle(tar.targetElment, ""); + var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName"), style = tar.ownerDocument.defaultView.geComputedStyle(tar.targetElment, ""); }, false); return this; };