should be
if(Firebug.MyPanel.disabled){
Firebug.registerModule(
Firebug.MyModule);
Firebug.registerPanel(Firebug.MyPanel);
Firebug.registerStylesheet("chrome://hellobootamd/skin/hellobootamd.css");
Firebug.registerStringBundle("chrome://hellobootamd/locale/hellobootamd.properties");
}


W dniu piątek, 24 sierpnia 2012 20:26:43 UTC+2 użytkownik First Steps 
napisał:
>
>
> Thank you for quick reply and fix. FbTrace works now.
>
>
> About second I solved it myself so i dont think it need issue.
>
> In 'myPanel.js' I added variable:
> disabled: false,
> Inside function 'initialize' in the same function:
> disabled = false;
> In 'main.js' inside function 'initialize' :
> if(Firebug.MyPanel.disabled){
> Firebug.registerModule(Firebug.MyModule);
> Firebug.registerPanel(Firebug.MyPanel);
> Firebug.registerStylesheet("chrome://hellobootamd/skin/hellobootamd.css");
> }
> and inside function 'shutdown':
> Firebug.MyPanel.disabled = true;
>
> And panel hide/show when extension is disbaled/enabled.
>
>
> W dniu piątek, 24 sierpnia 2012 08:55:02 UTC+2 użytkownik Jan Honza 
> Odvarko napisał:
>>
>> > Also my second question. If I disable this example extension it is 
>> removed from Firebug 
>> > instantly but if I enable it again, It is shown after Firefox restart. 
>> > Is it posible to add it instant like when installing? 
>> Yep this should be possible, please create a new issue report 
>> http://code.google.com/p/fbug/issues/list 
>>
>> Honza 
>>
>> On Aug 24, 8:43 am, Jan Honza Odvarko <[email protected]> wrote: 
>> > I think I fixed this problem athttps://
>> github.com/firebug/extension-examples/commit/1fe3c75812ee37a5... 
>> > 
>> > Please pull the changes and let me know if it helps. 
>> > 
>> > Thanks! 
>> > Honza 
>> > 
>> > On Aug 23, 9:23 pm, First Steps <[email protected]> wrote: 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > > Hi i got Firefox 14.0.1, Firebug 1.10.2 and fbtrace 1.10
>> https://getfirebug.com/releases/fbtrace/1.10/. 
>> > 
>> > > I used  example Jan Odvarko HelloBootAMDhttps://
>> github.com/firebug/extension-examples/tree/master/HelloAMD 
>> > 
>> > > Extension works but there is no logs in Fbtrace and in options there 
>> is noHELLOBOOTAMD 
>> > > . 
>> > > So i added fromhttps://getfirebug.com/wiki/index.php/FBTrace 
>> > 
>> > > pref("extensions.firebug.DBG_HELLOBOOTAMD", false); with true and 
>> false 
>> > 
>> > > and into function firebugStartup() in bootstrap.js code: 
>> > > 
>> Components.utils.import("resource://firebug/firebug-trace-service.js"); 
>> > > var FBTrace = traceConsoleService.getTracer("extensions.firebug"); 
>> > 
>> > > Still dont see button in options but if I add into main.js 
>> > > FBTrace.sysout("helloBootAMD; HelloBootAMD extension initialize"); 
>> > > without if (FBTrace.DBG_HELLOBOOTAMD) ot works. 
>> > 
>> > > So what I do wrong? 
>> > 
>> > > Also my second question. If I disable this example extension it is 
>> removed from Firebug instantly but if I enable it again, It is shown after 
>> Firefox restart. 
>> > > Is it posible to add it instant like when installing? 
>>
>

-- 
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
https://groups.google.com/forum/#!forum/firebug

Reply via email to