DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

#1 2009-10-03 20:47:59

Emil G.
New member

using 'apply' method on console.log()

Hi

I'm trying to use the 'apply' method on 'console.log()'. It works perfectly on FF/Firebug but not on Companion.JS with IE (tested in IE6 and IE8).

Example :
console.log.apply(this,['log : first part ','and second part of the log']);

Error returned by IE :
Cet objet ne gère pas cette propriété ou cette méthode

Is it normal ?

It seems that IE refuses the usage of 'apply' and 'call' method on some native functions (for example alert()), but works well on user defined functions. I haven't found the explanation on the net. Maybe somebody knows why.
Anyway, console.log() has the same error as these native functions.

Thanks for any help or explanation.

Emil

Offline

 

#2 2009-10-03 20:56:55

fabrice
DebugBar Support

Re: using 'apply' method on console.log()

Hi,

This is not supported so far.

Offline

 

#3 2009-10-04 16:36:48

fabrice
DebugBar Support

Re: using 'apply' method on console.log()

Hi,

I'm working on the "apply" method for all of the "console" object methods.

It should come soon...

Offline

 

#4 2009-10-05 17:53:18

fabrice
DebugBar Support

Re: using 'apply' method on console.log()

Hi,

Companion.JS has been improved and v0.5.3 have now "apply" methods for all "console" functions.

Offline

 

#5 2009-10-07 13:45:45

Emil G.
New member

Re: using 'apply' method on console.log()

Thanks,

that's a great and useful  job for all of us !

Emil

Offline

 

#6 2010-09-08 01:10:16

Emil G.
New member

Re: using 'apply' method on console.log()

I come back to you to report another problem linked to the same subject :

if I do : var LOG=console.log
then 'LOG.apply' works but 'LOG()' doesn't work (tested in IE7)

Can you confirm ? Will you add any modification to correct it ?

moreover, I also noticed that console.log.call() doesn't work. Maybe both problems are linked.

Thanks for your answer

Emil

Offline

 

#7 2010-09-14 12:57:53

fabrice
DebugBar Support

Re: using 'apply' method on console.log()

You're right. Working on it...

Offline

 

#8 2010-09-15 00:58:27

fabrice
DebugBar Support

Re: using 'apply' method on console.log()

Hi,

I just released Companion.JS v0.5.5 which adds "call" method and "direct call" feature to console.* methods.

Offline

 

#9 2010-09-22 04:56:44

Emil G.
New member

Re: using 'apply' method on console.log()

Thanks very much. I will update and check it.

Offline