svnno****@sourc*****
svnno****@sourc*****
2010年 5月 18日 (火) 21:22:18 JST
Revision: 1827 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1827 Author: dhrname Date: 2010-05-18 21:22:18 +0900 (Tue, 18 May 2010) Log Message: ----------- イベント属性の対処のため、SVGElementインターフェースを修正 Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-05-18 12:00:09 UTC (rev 1826) +++ branches/ufltima/dom/svg.js 2010-05-18 12:22:18 UTC (rev 1827) @@ -223,7 +223,21 @@ tar.className = evt.newValue; } else if (name.indexOf("on") === 0) { //event属性ならば var s = eval("(function(evt){" +evt.newValue+ "})"); - tar.addEventListener(name.substring(2, name.length), s, false); + var v = name.substring(2, name.length); + if (v === "load") { + v = "SVGLoad"; + } else if (v === "unload") { + v = "SVGUnload"; + } else if (v === "abort") { + v = "SVGAbort"; + } else if (v === "error") { + v = "SVGError"; + } else if (v === "resize") { + v = "SVGResize"; + } else if (v === "scroll") { + v = "SVGScroll"; + } + tar.addEventListener(v, s, false); } else if (evt.relatedNode.nodeName === "xml:base") { //xml:base属性ならば tar.xmlbase = evt.newValue; } else {