svnno****@sourc*****
svnno****@sourc*****
2010年 2月 3日 (水) 20:24:37 JST
Revision: 1627
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1627
Author: dhrname
Date: 2010-02-03 20:24:37 +0900 (Wed, 03 Feb 2010)
Log Message:
-----------
イベントに関する記述をイベントモジュールに移動させる
Modified Paths:
--------------
branches/ufltima/core.js
Modified: branches/ufltima/core.js
===================================================================
--- branches/ufltima/core.js 2010-02-02 14:35:30 UTC (rev 1626)
+++ branches/ufltima/core.js 2010-02-03 11:24:37 UTC (rev 1627)
@@ -596,11 +596,9 @@
localName = qualifiedName;
}
var n = this.getAttributeNodeNS(namespaceURI, localName); //属性ノードを取得する
- var evt = this.ownerDocument.createEvent("MutationEvents");
if (n) { //該当する属性ノードがあれば、
n.nodeValue = value;
n.value = value;
- evt.initMutationEvent("DOMAttrModified")
/*注意
*ここで接頭語(属性ノードのprefix)も、qualifiedNameの接頭語にあわせて書き換えられるべきであるが、軽量化のため、省略する
*/
@@ -613,9 +611,7 @@
if (qualifiedName === "id" && !namespaceURI) { //id属性であったならば
this.ownerDocument._id[value] = this; //ドキュメントに登録しておく
}
- evt.initMutationEvent("DOMAttrModified", true, true, atn, null, value, qualifiedName, MutationEvent.ADDITION)
}
- this.dispatchEvent(evt);
localName = null;
if(this.namespaceURI === "http://www.w3.org/svg/2000") {
try{ //以下でfill,storke要素のリセットが必要