changeset 73:eb15f69eb7da

don't unload so we can use the bfcache (hopefully this doesn't leak memory; all the unload handler did was null references)
author Myk Melez <myk@mozilla.org>
date Tue, 13 May 2008 19:04:14 -0700
parents 08e88dfc9f2f
children 09357a9bfca8
files extension/content/river.js extension/content/river.xhtml
diffstat 2 files changed, 1 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/extension/content/river.js	Tue May 13 18:34:52 2008 -0700
+++ b/extension/content/river.js	Tue May 13 19:04:14 2008 -0700
@@ -116,10 +116,6 @@
     this.writeContent();
   },
 
-  uninit: function SH_uninit() {
-    this.close();
-  },
-
   _updateToolbar: function() {
     this._params = {};
     let query = window.location.search.substr(1);
@@ -671,19 +667,6 @@
     this.writeContent();
   },
 
-  close: function FW_close() {
-    this._document = null;
-    this._window = null;
-
-    this.__bundle = null;
-    //this._feedURI = null;
-    this.__contentSandbox = null;
-
-    var historySvc = Cc["@mozilla.org/browser/nav-history-service;1"].
-                     getService(Ci.nsINavHistoryService);
-    historySvc.removeObserver(this);
-  },
-
   // Date Formatting Service
   get _dfSvc() {
     let dfSvc = Cc["@mozilla.org/intl/scriptabledateformat;1"].
--- a/extension/content/river.xhtml	Tue May 13 18:34:52 2008 -0700
+++ b/extension/content/river.xhtml	Tue May 13 19:04:14 2008 -0700
@@ -24,7 +24,7 @@
           href="chrome://snowl/content/river.css"/>
     <script type="application/x-javascript;version=1.8" src="chrome://snowl/content/river.js"/>
   </head>
-  <body onload="RiverView.init()" onunload="RiverView.uninit()">
+  <body onload="RiverView.init()">
     <xul:hbox id="toolbar" align="center">
       <xul:button id="unreadButton" type="checkbox" label="Unread"
                   oncommand="RiverView.onCommandUnreadButton(event, this)"/>