[Sie-announce] SIEコード [2409] 0. 70beta版の修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 2月 15日 (火) 23:20:29 JST


Revision: 2409
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2409
Author:   dhrname
Date:     2011-02-15 23:20:29 +0900 (Tue, 15 Feb 2011)

Log Message:
-----------
0.70beta版の修正

Modified Paths:
--------------
    branches/07x/sie.js

Modified: branches/07x/sie.js
===================================================================
--- branches/07x/sie.js	2011-02-15 11:03:29 UTC (rev 2408)
+++ branches/07x/sie.js	2011-02-15 14:20:29 UTC (rev 2409)
@@ -1122,10 +1122,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") {
@@ -1142,7 +1138,7 @@
     evt =  new Event();
   }
   evt.type = eventType;
-  evt.timeStamp = this._date_.getTime();
+  evt.timeStamp = +(new Date());
   return evt;
 };
 
@@ -4026,16 +4022,17 @@
           NAIBU._buff = setInterval(function(){
             if (DOMImplementation._buffer_.length === 0) {
               clearInterval(Event._buff);              
-            }
-            for (var i=0;i<50;++i) {
-              var s = DOMImplementation._buffer_.shift(), evt = DOMImplementation._buffer_.shift();
-              s.dispatchEvent(evt);
-              s = evt = null;
-              if (!DOMImplementation._buffer_[1]) {
-                clearInterval(NAIBU._buff);
-                DOMImplementation._buffer_ = null;
-                NAIBU.Time.start();
-                return;
+            } else {
+              for (var i=0;i<50;++i) {
+                var s = DOMImplementation._buffer_.shift(), evt = DOMImplementation._buffer_.shift();
+                s.dispatchEvent(evt);
+                s = evt = null;
+                if (!DOMImplementation._buffer_[1]) {
+                  clearInterval(NAIBU._buff);
+                  DOMImplementation._buffer_ = null;
+                  NAIBU.Time.start();
+                  return;
+                }
               }
             }
           }, 1);
@@ -4720,7 +4717,7 @@
       for (var i=0, dli=dd.length;i<dli;++i) {
         D[i] = dd[i].match(sgs);
         for (var j=1, dili=D[i].length;j<dili;++j) {
-          D[i][j] = (D[i][j]) | 0;
+          D[i][j] = +(D[i][j]);
         }
       }
       sgs = dd = null;




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