svnno****@sourc*****
svnno****@sourc*****
2010年 4月 29日 (木) 23:42:40 JST
Revision: 1807
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1807
Author: dhrname
Date: 2010-04-29 23:42:39 +0900 (Thu, 29 Apr 2010)
Log Message:
-----------
eventのMutationEventを修正
Modified Paths:
--------------
branches/ufltima/dom/events.js
Modified: branches/ufltima/dom/events.js
===================================================================
--- branches/ufltima/dom/events.js 2010-04-28 14:47:31 UTC (rev 1806)
+++ branches/ufltima/dom/events.js 2010-04-29 14:42:39 UTC (rev 1807)
@@ -313,11 +313,11 @@
}
/*ここから*/
var evt = this.ownerDocument.createEvent("MutationEvents");
- if (!s) { //ノードがすでにあるならば
- evt.initMutationEvent("DOMAttrModified", true, false, newAttr, null, newAttr.nodeValue, newAttr.nodeName, MutationEvent.MODIFICATION);
+ if (!s) { //ノードがなければ
+ evt.initMutationEvent("DOMAttrModified", true, false, newAttr, null, newAttr.nodeValue, newAttr.nodeName, MutationEvent.ADDITION);
this.dispatchEvent(evt); //このとき、MutationEventsが発動
} else {
- evt.initMutationEvent("DOMAttrModified", true, false, newAttr, s.nodeValue, newAttr.nodeValue, newAttr.nodeName, MutationEvent.ADDITION);
+ evt.initMutationEvent("DOMAttrModified", true, false, newAttr, s.nodeValue, newAttr.nodeValue, newAttr.nodeName, MutationEvent.MODIFICATION);
this.dispatchEvent(evt);
}
evt = null;