svnno****@sourc*****
svnno****@sourc*****
2011年 2月 13日 (日) 23:05:41 JST
Revision: 2403 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2403 Author: dhrname Date: 2011-02-13 23:05:41 +0900 (Sun, 13 Feb 2011) Log Message: ----------- EventのtimeStampプロパティに誤りがあったので修正 Modified Paths: -------------- branches/07x/071/org/w3c/dom/events.js Modified: branches/07x/071/org/w3c/dom/events.js =================================================================== --- branches/07x/071/org/w3c/dom/events.js 2011-02-13 11:51:46 UTC (rev 2402) +++ branches/07x/071/org/w3c/dom/events.js 2011-02-13 14:05:41 UTC (rev 2403) @@ -276,10 +276,6 @@ function DocumentEvent() { return this; }*/ -/*_date_プロパティは、createEventメソッドで使われるために、 - *あらかじめ、Dateオブジェクトを作成しておいて、それを入れるプロパティ - */ -Document.prototype._date_ = new Date(); /*Event*/ Document.prototype.createEvent = function( /*string*/ eventType) { var evt; if (eventType === "MutationEvents") { @@ -296,7 +292,7 @@ evt = new Event(); } evt.type = eventType; - evt.timeStamp = this._date_.getTime(); + evt.timeStamp = +(new Date()); return evt; };