|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
console.log not working when nestedAfter upgrading to FF 3/FB 1.2 I've been unable to get console.log to function when nested inside certain anonymous functions. For instance, I use Extjs and the following code results in an error saying the console object doesn't exist: Ext.onReady(function(){ console.log('foo'); }) Try for yourself with Ext inside the onReady function. I wonder what's causing this? It never used to be an issue until FF3/FB1.2. I've also tried window.console.log() only to get the same error. I use the heck out of console.* functions inside Extjs's onReady event so any advice would really help me out. Thanks! Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@... To unsubscribe from this group, send email to firebug-unsubscribe@... For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: console.log not working when nestedThere are several variations on this problem. I guess you are in a scope that does not include the window when the call is made. The console in 1.2 is completely different from 1.1 and 1.0. We can't go back so we have to make it work. On Jul 23, 9:00 pm, Daniel Stevens <danstev...@...> wrote: > After upgrading to FF 3/FB 1.2 I've been unable to get console.log to function when nested inside certain anonymous functions. For instance, I use Extjs and the following code results in an error saying the console object doesn't exist: > > Ext.onReady(function(){ console.log('foo'); }) > > Try for yourself with Ext inside the onReady function. I wonder what's causing this? It never used to be an issue until FF3/FB1.2. I've also tried window.console.log() only to get the same error. I use the heck out of console.* functions inside Extjs's onReady event so any advice would really help me out. > > Thanks! > Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@... To unsubscribe from this group, send email to firebug-unsubscribe@... For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: console.log not working when nestedI'm wondering if there is a work around for this at the moment? On Jul 23, 11:08 pm, John J Barton <johnjbar...@...> wrote: > There are several variations on this problem. I guess you are in a > scope that does not include the window when the call is made. > > The console in 1.2 is completely different from 1.1 and 1.0. We can't > go back so we have to make it work. > > On Jul 23, 9:00 pm, Daniel Stevens <danstev...@...> wrote: > > > After upgrading to FF 3/FB 1.2 I've been unable to get console.log to function when nested inside certain anonymous functions. For instance, I use Extjs and the following code results in an error saying the console object doesn't exist: > > > Ext.onReady(function(){ console.log('foo'); }) > > > Try for yourself with Ext inside the onReady function. I wonder what's causing this? It never used to be an issue until FF3/FB1.2. I've also tried window.console.log() only to get the same error. I use the heck out of console.* functions inside Extjs's onReady event so any advice would really help me out. > > > Thanks! > > Dan You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@... To unsubscribe from this group, send email to firebug-unsubscribe@... For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: console.log not working when nestedIf you put a test case on the issues list http://code.google.com/p/fbug/issues/list I'll make a workaround for you. On Jul 24, 10:18 am, dancablam <danstev...@...> wrote: > I'm wondering if there is a work around for this at the moment? > > On Jul 23, 11:08 pm, John J Barton <johnjbar...@...> > wrote: > > > There are several variations on this problem. I guess you are in a > > scope that does not include the window when the call is made. > > > The console in 1.2 is completely different from 1.1 and 1.0. We can't > > go back so we have to make it work. > > > On Jul 23, 9:00 pm, Daniel Stevens <danstev...@...> wrote: > > > > After upgrading to FF 3/FB 1.2 I've been unable to get console.log to function when nested inside certain anonymous functions. For instance, I use Extjs and the following code results in an error saying the console object doesn't exist: > > > > Ext.onReady(function(){ console.log('foo'); }) > > > > Try for yourself with Ext inside the onReady function. I wonder what's causing this? It never used to be an issue until FF3/FB1.2. I've also tried window.console.log() only to get the same error. I use the heck out of console.* functions inside Extjs's onReady event so any advice would really help me out. > > > > Thanks! > > > Dan You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@... To unsubscribe from this group, send email to firebug-unsubscribe@... For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: console.log not working when nestedThanks, John. I've created the issue: http://code.google.com/p/fbug/issues/detail?id=1014 Cheers, Dan On Jul 24, 6:24 pm, John J Barton <johnjbar...@...> wrote: > If you put a test case on the issues listhttp://code.google.com/p/fbug/issues/list > I'll make a workaround for you. > > On Jul 24, 10:18 am, dancablam <danstev...@...> wrote: > > > I'm wondering if there is a work around for this at the moment? > > > On Jul 23, 11:08 pm, John J Barton <johnjbar...@...> > > wrote: > > > > There are several variations on this problem. I guess you are in a > > > scope that does not include the window when the call is made. > > > > The console in 1.2 is completely different from 1.1 and 1.0. We can't > > > go back so we have to make it work. > > > > On Jul 23, 9:00 pm, Daniel Stevens <danstev...@...> wrote: > > > > > After upgrading to FF 3/FB 1.2 I've been unable to get console.log to function when nested inside certain anonymous functions. For instance, I use Extjs and the following code results in an error saying the console object doesn't exist: > > > > > Ext.onReady(function(){ console.log('foo'); }) > > > > > Try for yourself with Ext inside the onReady function. I wonder what's causing this? It never used to be an issue until FF3/FB1.2. I've also tried window.console.log() only to get the same error. I use the heck out of console.* functions inside Extjs's onReady event so any advice would really help me out. > > > > > Thanks! > > > > Dan You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to firebug@... To unsubscribe from this group, send email to firebug-unsubscribe@... For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |