svnno****@sourc*****
svnno****@sourc*****
2011年 5月 16日 (月) 21:50:18 JST
Revision: 2688
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2688
Author: dhrname
Date: 2011-05-16 21:50:18 +0900 (Mon, 16 May 2011)
Log Message:
-----------
dispatchEventメソッドの最適化
Modified Paths:
--------------
branches/07x/078/org/w3c/dom/events.js
Modified: branches/07x/078/org/w3c/dom/events.js
===================================================================
--- branches/07x/078/org/w3c/dom/events.js 2011-05-16 12:49:44 UTC (rev 2687)
+++ branches/07x/078/org/w3c/dom/events.js 2011-05-16 12:50:18 UTC (rev 2688)
@@ -147,6 +147,7 @@
etype = evt.type,
ebub = evt.bubbles,
tob,
+ toli,
type = /*Event.CAPTURING_PHASE*/ 1,
tce;
if (!td._isLoaded) {
@@ -161,9 +162,11 @@
} else if ((etime - td._limit_time_) > 1000) {
/*1秒を超えたらバッファにため込んで後で使う*/
tob = td.implementation._buffer_ || [];
- tob.push(this);
- tob.push(evt);
+ toli = tob.length
+ tob[toli] = this;
+ tob[toli+1] = evt;
td.implementation._buffer_ = tob;
+ te = td = etime = etype = ebub = tob = toli = type = null;
return true;
}
}