Thanks, that has exposed the problem but not the source of the
problem.
I changed this in chrome.js:
$: function(id)
{
FBTrace.sysout("chrome.$ document: "+(document.location) + " for ID: "
+ id + " and $ is: " + $);
return $(id);
},
And this in lib.js:
this.$ = function(id, doc)
{
FBTrace.sysout("lib.$ document: "+(doc?
doc.location:document.location) + " for ID: " + id);
if (doc)
return doc.getElementById(id);
else
return document.getElementById(id);
};
When attached to the browser chrome I see this:
FTS0: chrome.$ document: chrome://browser/content/browser.xul for ID:
adfvLocationToolbar_logfiles and $ is: function (id, doc) {
FBTrace.sysout("lib.$ document: " + (doc ? doc.location :
document.location) + " for ID: " + id);
if (doc) {
return doc.getElementById(id);
} else {
return document.getElementById(id);
}
}
FTS0: lib.$ document: chrome://browser/content/browser.xul for ID:
adfvLocationToolbar_logfiles
After attaching to a new window, I get this:
FTS0: chrome.$ document: chrome://firebug/content/firebug.xul for ID:
fbAdfvTypeMenu and $ is: function $(id, doc) {
if (doc) {
return doc.getElementById(id);
} else {
return document.getElementById(id);
}
}
As you can see, the global function "$" from chrome's point of view is
a different function when firebug is in a window compared to when it
was attached to the browser.
I'll have to see if I can trace where on earth that new '$' is coming
from, because I do not see it in my code or your code at the moment,
but it does look like the firebug $ definition, just not the one from
lib.js that I am expecting.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en
-~----------~----~----~----~------~----~------~--~---