[Sie-announce] SIEコード [2171] eventに関して、dettachEventを使いながら、メモリリーク対策をとった

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 24日 (水) 22:24:52 JST


Revision: 2171
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2171
Author:   dhrname
Date:     2010-11-24 22:24:52 +0900 (Wed, 24 Nov 2010)

Log Message:
-----------
eventに関して、dettachEventを使いながら、メモリリーク対策をとった

Modified Paths:
--------------
    branches/06x/064/org/w3c/dom/svg.js

Modified: branches/06x/064/org/w3c/dom/svg.js
===================================================================
--- branches/06x/064/org/w3c/dom/svg.js	2010-11-24 13:23:48 UTC (rev 2170)
+++ branches/06x/064/org/w3c/dom/svg.js	2010-11-24 13:24:52 UTC (rev 2171)
@@ -1538,6 +1538,7 @@
       screen.updateInterval = 999;
       window.onscroll = function () {
         screen.updateInterval = 0;
+        window.onscroll = NAIBU.emptyFunction;
       }
       var objei = this._tar;
       if (/&[^;]+;/.test(str)) {
@@ -5364,6 +5365,7 @@
     if ("stop" in NAIBU) {
       clearInterval(NAIBU.stop);
     }
+    window.dettachEvent("onload", NAIBU._main);
     Element = SVGElement = Attr = NamedNodeMap = CSS2Properties = CSSValue = CSSPrimitiveValue = NAIBU.xmlhttp = Node = Event = NAIBU = stlog = STLog = document = null;
     Array = ActiveXObject = null;
   } catch(e) {}




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