On Friday, July 25, 2014 1:55:09 AM UTC+2, San wrote: > > Thank you for your extremely informative response. This will sound dumb, > but I hadn't even realized that console.log and console.info were > JavaScript functions -- I thought they were something "special" to Firebug > only (whatever that means). > Well, now you know. :-) FYI all functionality within Firebug <https://github.com/firebug/firebug/tree/master/extension> and even within Firefox' UI is based on pure JavaScript.
> That turned out to be true; however, the syntax you showed was slightly > wrong -- at least it is for the named versions I'm now using. > Specifically... I'm testing my "resize illustration" code, and the > resizeIllus function can be triggered either by various other code or by > the user clicking directly on the illustration. So if I begin the ternary > operator this way, analogous (I assume) to the code you suggested: > > console.info( resizeIllus.caller.name ? ...etc. > > ...it throws a JS error if the user has clicked. Turns out I have to test > for the caller itself, not for caller.name, even though it's the name (of > the calling function) that I'm after. > Yeah, right, so you actually need to check whether the caller exists or not. By the way, the click code itself was set up simply like this: > > illustration.onclick = resizeIllus; > > ...and I don't know how to make Firebug identify an event like that as the > specific trigger (or caller) of a function > Firebug 2.0 has a new *Events* side panel <https://getfirebug.com/wiki/index.php/Events_Side_Panel> within the *HTML* panel <https://getfirebug.com/wiki/index.php/HTML_Panel> for this. More about this and other new features can be read in the release notes for 2.0 <https://getfirebug.com/wiki/index.php/Firebug_2.0_Release_Notes>. > P.S. I read this discussion group in my gmail account, and it displays > parts of the code I insert as underlined blue links, even though they're > not links at all. I have no idea why. It's a little annoying. Do other > people see parts of my code that way? > Yes, they are displayed as links. > Any idea how I can stop it from doing that? > If you answer from within Gmail remove the automatically created links again. Though you should better answer from within the discussion group itself as it has a feature to format your code automatically via the {} button. To write from there just click the link at the bottom of each post saying "To view this discussion on the web visit ..." Sebastian -- You received this message because you are subscribed to the Google Groups "Firebug" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/firebug. To view this discussion on the web visit https://groups.google.com/d/msgid/firebug/f20cdff8-3e13-4dc0-8da1-fc86d51d50be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
