[Pkg-mozext-commits] [firebug] 20/55: Fix bug with spy.logRow not being defined.
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.1
in repository firebug.
commit f3803c7aca8637771f831085b42636068b71835e
Author: Nikhil Verma <nikhilv at opera.com>
Date: Thu Jul 19 12:50:52 2012 +0200
Fix bug with spy.logRow not being defined.
---
extension/content/firebug/net/spy.js | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/extension/content/firebug/net/spy.js b/extension/content/firebug/net/spy.js
index 121a9be..db9ecc1 100644
--- a/extension/content/firebug/net/spy.js
+++ b/extension/content/firebug/net/spy.js
@@ -1086,17 +1086,23 @@ Firebug.XHRSpyListener =
function updateTime(spy)
{
- var timeBox = spy.logRow.getElementsByClassName("spyTime").item(0);
- if (spy.responseTime)
- timeBox.textContent = " " + Str.formatTime(spy.responseTime);
+ if(spy.logRow)
+ {
+ var timeBox = spy.logRow.getElementsByClassName("spyTime").item(0);
+ if (spy.responseTime)
+ timeBox.textContent = " " + Str.formatTime(spy.responseTime);
+ }
}
function updateLogRow(spy)
{
updateTime(spy);
- var statusBox = spy.logRow.getElementsByClassName("spyStatus").item(0);
- statusBox.textContent = Firebug.Spy.XHR.getStatus(spy);
+ if(spy.logRow)
+ {
+ var statusBox = spy.logRow.getElementsByClassName("spyStatus").item(0);
+ statusBox.textContent = Firebug.Spy.XHR.getStatus(spy);
+ }
if (spy.loaded)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list