[Sie-announce] SIEコード [2949] マウス関連の動的なイベントでクロージャの処理ミスがあったので修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 9月 15日 (木) 20:15:09 JST


Revision: 2949
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2949
Author:   dhrname
Date:     2011-09-15 20:15:09 +0900 (Thu, 15 Sep 2011)

Log Message:
-----------
マウス関連の動的なイベントでクロージャの処理ミスがあったので修正

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

Modified: branches/08x/085/org/w3c/dom/events.js
===================================================================
--- branches/08x/085/org/w3c/dom/events.js	2011-09-13 12:48:36 UTC (rev 2948)
+++ branches/08x/085/org/w3c/dom/events.js	2011-09-15 11:15:09 UTC (rev 2949)
@@ -116,7 +116,7 @@
   this._capter.push(s);                 //このノードにリスナーを登録しておく
   if ((t !== "D") && (t !== "S") && (type !== "beginEvent") && (type !== "endEvent") && (type !== "repeatEvent")) { //MouseEventsならば
     that = this;
-    that._tar && that._tar.attachEvent("on" +type, (function(node) { 
+    that._tar && that._tar.attachEvent("on" +type, (function(node, type) { 
       return  function(){
         var evt = node.ownerDocument.createEvent("MouseEvents");
         evt.initMouseEvent(type, true, true, node.ownerDocument.defaultView, 0);
@@ -125,7 +125,7 @@
         node.ownerDocument._window.event.cancelBubble = true;
         evt = null;
       };
-    })(that)
+    })(that, type)
     );
   }
   type = listener = useCapture = s = t = that = null;




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