[Pkg-mozext-commits] [itsalltext] 258/459: Be sure that we unload everything.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 5278b8e350a594709352ec38ceceb2779911e338
Author: Christian Höltje <docwhat at gerf.org>
Date: Thu Jun 21 18:49:32 2007 -0400
Be sure that we unload everything.
---
src/chrome/content/itsalltext.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 4027257..0609bb7 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -623,7 +623,7 @@ var ItsAllText = function() {
}
that.cleanCacheObjs();
for(i=documents.length - 1; i >= 0; i--) {
- if(typeof(documents[i]) == 'undefined') {
+ if(typeof(documents[i]) === 'undefined') {
documents.splice(i,1);
}
}
@@ -871,9 +871,9 @@ ItsAllText.prototype.pageload = function(event) {
*/
ItsAllText.prototype.pageunload = function(event) {
var doc = event.originalTarget;
- if (!doc || doc.nodeName != "#document") {
- return;
- }
+ /* We don't check for the doc type because we want to
+ * be sure everything is unloaded.
+ */
this.debug("pageunload(): A page has been unloaded",doc);
this.monitor.unwatch(doc);
this.preference_observer.unregister();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list