svnno****@sourc*****
svnno****@sourc*****
2010年 2月 16日 (火) 22:04:05 JST
Revision: 1664 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1664 Author: dhrname Date: 2010-02-16 22:04:05 +0900 (Tue, 16 Feb 2010) Log Message: ----------- DOMNodeInsetedIntoDocumentイベントのサポート Modified Paths: -------------- branches/ufltima/dom/events.js Modified: branches/ufltima/dom/events.js =================================================================== --- branches/ufltima/dom/events.js 2010-02-16 11:18:24 UTC (rev 1663) +++ branches/ufltima/dom/events.js 2010-02-16 13:04:05 UTC (rev 1664) @@ -315,7 +315,15 @@ evt.target = n; evt.initMutationEvent("DOMNodeInserted", true, false, this, null, null, null, null); n.dispatchEvent(evt); - evt = null; + var descendantElements = this.getElementsByTagNameNS("*", "*"); + for (var i=0,dli=descendantElements.length;i<dli;++i) { + var di = descendantElements[i]; + evt.target = di; + evt.initMutationEvent("DOMNodeInsertedIntoDocument", true, false, null, null, null, null, null); + di.dispatchEvent(evt); + di = null; + } + evt = descendantElements = null; /*ここまで追加*/ return n; };