svnno****@sourc*****
svnno****@sourc*****
2011年 2月 15日 (火) 20:02:10 JST
Revision: 2407 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2407 Author: dhrname Date: 2011-02-15 20:02:10 +0900 (Tue, 15 Feb 2011) Log Message: ----------- バッファリングが空の場合は、処理を実行させないように修正 Modified Paths: -------------- branches/07x/071/org/w3c/dom/svg.js Modified: branches/07x/071/org/w3c/dom/svg.js =================================================================== --- branches/07x/071/org/w3c/dom/svg.js 2011-02-15 10:57:53 UTC (rev 2406) +++ branches/07x/071/org/w3c/dom/svg.js 2011-02-15 11:02:10 UTC (rev 2407) @@ -1699,16 +1699,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);