[Pkg-mozext-commits] [itsalltext] 401/459: Fixed repeated errors in FF15

David Prévot taffit at moszumanska.debian.org
Tue Feb 24 23:26:42 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 b7ae971f9403576a2ccb0b85118c72db3a41296c
Author: Christian Höltje <docwhat at gerf.org>
Date:   Thu May 17 22:27:14 2012 -0400

    Fixed repeated errors in FF15
    
    Basically, FF used to not emit errors/warnings before.
    Easy fix, check if offset is undefined or not.
    
    This fixes issue #15
---
 src/chrome/content/monitor.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chrome/content/monitor.js b/src/chrome/content/monitor.js
index 44c1d08..6026a0c 100644
--- a/src/chrome/content/monitor.js
+++ b/src/chrome/content/monitor.js
@@ -115,7 +115,7 @@ Monitor.prototype.hitched_findnodes = function (doc) {
  */
 Monitor.prototype.hitched_watcher = function (offset, init) {
     // If it's a special number or it's an event, then we need to init.
-    if (offset.type && offset.type === 'TabSelect') {
+    if (typeof offset != 'undefined' && offset.type && offset.type === 'TabSelect') {
         init = true;
     }
     var rate = itsalltext.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