[Pkg-mozext-commits] [itsalltext] 327/459: Ticket #37 -- Fixed loading in non-visible tab.

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:35 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 31bebafff89b91d631d1875b3b2a865eb46fb584
Author: Christian Höltje <docwhat at gmail.com>
Date:   Thu Oct 23 22:02:39 2008 -0400

    Ticket #37 -- Fixed loading in non-visible tab.
---
 src/chrome/content/cacheobj.js | 1 -
 src/chrome/content/monitor.js  | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 1fbbaf7..bc48674 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -506,7 +506,6 @@ CacheObj.prototype.fade = function (steps, delay) {
  */
 CacheObj.prototype.update = function () {
     var value;
-    ItsAllText.debug('narf update', this.file.path);
     if (this.hasChanged()) {
         value = this.read();
         if (value !== null) {
diff --git a/src/chrome/content/monitor.js b/src/chrome/content/monitor.js
index 4c4a5de..7a29dda 100644
--- a/src/chrome/content/monitor.js
+++ b/src/chrome/content/monitor.js
@@ -72,8 +72,8 @@ monitor.prototype.hitched_registerPage = function (event) {
  * cache objects in the page.
  */
 monitor.prototype.hitched_watcher = function (offset, init) {
-    if (typeof(offset) === 'number' &&
-        offset.type === 'TabSelect') {
+    // If it's a special number or it's an event, then we need to init.
+    if (offset.type && offset.type === 'TabSelect') {
         init = true;
     }
     var rate = this.iat.getRefresh(),

-- 
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