svnno****@sourc*****
svnno****@sourc*****
2010年 3月 4日 (木) 23:36:28 JST
Revision: 1696
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1696
Author: dhrname
Date: 2010-03-04 23:36:28 +0900 (Thu, 04 Mar 2010)
Log Message:
-----------
EventのtimeStampプロパティを修正
Modified Paths:
--------------
branches/ufltima/dom/events.js
Modified: branches/ufltima/dom/events.js
===================================================================
--- branches/ufltima/dom/events.js 2010-03-04 14:35:45 UTC (rev 1695)
+++ branches/ufltima/dom/events.js 2010-03-04 14:36:28 UTC (rev 1696)
@@ -167,7 +167,9 @@
}
}
};
-
+/*Eventクラス
+ *イベントの雛形となる。プロパティもすべて含めて、必須
+ */
function Event(evt) {
if (!evt) {
var evt = { ctrlKey:null, shiftKey:null, altKey:null, clientX:null, clientY:null};
@@ -178,7 +180,7 @@
/*unsigned short*/ this.eventPhase = Event.CAPTURING_PHASE;
/*boolean*/ this.bubbles = false;
/*boolean*/ this.cancelable = false;
- /*DOMTimeStamp*/ this.timeStamp = new Date();
+ /*DOMTimeStamp*/ this.timeStamp = (new Date()).getTime();
this._stop = false; //stopPropagationメソッドで使う
this._default = true; //preventDefaultメソッドで使う
return this;