NAIBU._temp_doc = tar.ownerDocument;\r
NAIBU.eval("with(NAIBU._temp_doc){document._s = function(evt){" +evt.newValue+ "}}");\r
var v = name.slice(2);\r
- if (v === "load") {\r
- v = "SVGLoad";\r
- } else if (v === "unload") {\r
- v = "SVGUnload";\r
- } else if (v === "abort") {\r
- v = "SVGAbort";\r
- } else if (v === "error") {\r
- v = "SVGError";\r
- } else if (v === "resize") {\r
- v = "SVGResize";\r
- } else if (v === "scroll") {\r
- v = "SVGScroll";\r
- } else if (v === "zoom") {\r
- v = "SVGZoom";\r
- } else if (v === "begin") {\r
- v = "beginEvent";\r
- } else if (v === "end") {\r
- v = "endEvent";\r
- } else if (v === "repeat") {\r
- v = "repeatEvent";\r
- }\r
+ v = (v === "load") ? "SVGLoad"\r
+ : (v === "unload") ? "SVGUnload"\r
+ : (v === "abort") ? "SVGAbort"\r
+ : (v === "error") ? "SVGError"\r
+ : (v === "resize") ? "SVGResize"\r
+ : (v === "scroll") ? "SVGScroll"\r
+ : (v === "zoom") ? "SVGZoom"\r
+ : (v === "begin") ? "beginEvent"\r
+ : (v === "end") ? "endEvent"\r
+ : (v === "repeat") ? "repeatEvent"\r
+ : v;\r
tar.addEventListener(v, document._s, false);\r
} else if (evt.relatedNode.nodeName === "xml:base") { //xml:base属性ならば\r
tar.xmlbase = evt.newValue;\r
tea.baseVal.newValueSpecifiedUnits(type, s);\r
tea = tod = tvw = tvh = n = type = _parseFloat = s = void 0;\r
}\r
- evt = _parseFloat = name = tar = null;\r
+ evt = _parseFloat = name = tar = v = null;\r
}, false);\r
};\r
SVGElement.prototype = Object._create(Element);\r