Hi,
I'm stumped on how to retrieve another Firebug module for an external
extension. (Or perhaps what I need to do is ensure that Firebug loads
before my extension?)
I've looked at the source code for Firebug and the extension I'm
interested in loading (Fireunit), as well as the docs online here
http://getfirebug.com/docs.html
My first thought was to access fireunit through the global namespace:
fireunit.ok(true,"it worked!!");
fireunit.testDone();
This fails because "fireunit" is not defined (if I'm confusing
concepts or leaving something else let me know; happy to get better at
both the technical and communication aspects)
"Firebug" and "FBL" are defined.
I see in fireunit.js that Fireunit registers the FireUnitModule with
Firebug, and I see the global modules variable in firebug.js
I've played with different objects, to no avail. How do I access the
"ok" and "testDone" functions of fireunit?
I even tried doing the following, though it appears not to get
executed.
FBL.ns(function() { with (FBL) {
firebug.ok(true, "it worked!");
firebug.testDone();
}});
Thanks for your help,
Lucy.
Possibly relevant from fireunit.js
Firebug.FireUnitModule = extend(Firebug.Module, {
...
});
Firebug.FireUnitModule.Fireunit = function(context, win) {
var fireunit = {
ok: ...,
...
}
fireunit.__defineGetter__("browser", function() {
return canChrome(win) ? window : null;
});
this.__proto__ = fireunit;
};