svnno****@sourc*****
svnno****@sourc*****
2010年 12月 13日 (月) 19:47:01 JST
Revision: 2220 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2220 Author: dhrname Date: 2010-12-13 19:47:01 +0900 (Mon, 13 Dec 2010) Log Message: ----------- unloadのdetachEventが「dettachEvent」と誤っていたので修正 Modified Paths: -------------- branches/06x/066/org/w3c/dom/svg.js Modified: branches/06x/066/org/w3c/dom/svg.js =================================================================== --- branches/06x/066/org/w3c/dom/svg.js 2010-12-11 14:41:35 UTC (rev 2219) +++ branches/06x/066/org/w3c/dom/svg.js 2010-12-13 10:47:01 UTC (rev 2220) @@ -5524,16 +5524,17 @@ lis(); } }; + function unsvgtovml() { try { if ("stop" in NAIBU) { clearInterval(NAIBU.stop); } - window.dettachEvent("onload", NAIBU._main); window.onscroll = NAIBU.emptyFunction; + window.detachEvent("onload", NAIBU._main); Element = SVGElement = Attr = NamedNodeMap = CSS2Properties = CSSValue = CSSPrimitiveValue = NAIBU.xmlhttp = Node = Event = NAIBU = stlog = STLog = document = null; Array = ActiveXObject = null; - } catch(e) {} + } catch(e) {console.log(e.message);} } /*_main関数 *一番最初に起動するべき関数 @@ -5612,8 +5613,8 @@ oba.setAttribute("id","_NAIBU_outline"); document.body.appendChild(oba); var ob = document.getElementsByTagName("object"), em = document.getElementsByTagName("embed"); - var i = 0; - for (s=[];i<ob.length;++i) { + var i = 0, s=[]; + for (;i<ob.length;++i) { s[s.length] = new GetSVGDocument(ob[i]); } for (i=0;i<em.length;++i) {