[Sie-announce] SIEコード [2905] マウスイベントの二重起動という問題があったので、それを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 8月 31日 (水) 22:59:55 JST


Revision: 2905
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2905
Author:   dhrname
Date:     2011-08-31 22:59:55 +0900 (Wed, 31 Aug 2011)

Log Message:
-----------
マウスイベントの二重起動という問題があったので、それを修正

Modified Paths:
--------------
    branches/08x/084/org/w3c/dom/events.js
    branches/08x/084/org/w3c/dom/svg.js

Modified: branches/08x/084/org/w3c/dom/events.js
===================================================================
--- branches/08x/084/org/w3c/dom/events.js	2011-08-30 12:58:22 UTC (rev 2904)
+++ branches/08x/084/org/w3c/dom/events.js	2011-08-31 13:59:55 UTC (rev 2905)
@@ -121,6 +121,8 @@
         var evt = node.ownerDocument.createEvent("MouseEvents");
         evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0);
         node.dispatchEvent(evt);
+        /*cancelBubbleプロパティについては、IEのMSDNなどを参照*/
+        node.ownerDocument._window.event.cancelBubble = true;
         evt = null;
       };
     })(that)

Modified: branches/08x/084/org/w3c/dom/svg.js
===================================================================
--- branches/08x/084/org/w3c/dom/svg.js	2011-08-30 12:58:22 UTC (rev 2904)
+++ branches/08x/084/org/w3c/dom/svg.js	2011-08-31 13:59:55 UTC (rev 2905)
@@ -1826,6 +1826,10 @@
       fi = fi.nextSibling;
     }
     fi = null;
+    /*dom/event.jsのaddEventListenerメソッドなどで、iframe要素のwindowオブジェクトを利用する必要があるため、
+     *ドキュメントにそのオブジェクトを結び付けておく
+     */
+    s._window = ifcw;
     /*以下では、VMLの要素とHTMLのCSSのプロパティを用いて、背景を
      *作り出す作業を行う。これは必須
      */




Sie-announce メーリングリストの案内
Back to archive index