Okay, I have this weird problem in Firefox. I type in Firebug's console
$ == jQuery
Sometime it displays true, and sometimes false. The file is just an empty HTML document with one script tag including jQuery. I refresh the page, click "Run" in the console, and again, occasionally it returns true, occasionally false.
On the occasions where it returns false, $.toString()
gives
function anonymous() {
return window.console.notifyFirebug(arguments, "$", "firebugExecuteCommand");
}
Now here's the weird thing. When $ == jQuery
gives false using Firebug's console, if I go to the address bar and type javascript:alert($ == jQuery);
, it alerts true!
Does anyone have any idea what's going on here? It's (occasionally) messing up my debugging.