Permalink
Browse files

debug function for browser

  • Loading branch information...
1 parent 602156f commit 7aacb893b22fe7edbd20d89dc5b8e2b8677321a0 @mnaamani committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/index.js
  2. +1 −1 test/testing-events.js
View
2 test/index.js
@@ -24,7 +24,7 @@ if(typeof process !== "undefined" ){
if(verbose){
otr.debugOn();
- debug = console.error;
+ debug = function(){console.log([].join.call(arguments," "));};
}
if(USE_VFS){
View
2 test/testing-events.js
@@ -39,7 +39,7 @@ if(typeof process !== "undefined" ){
if(verbose){
otr.debugOn();
- debug = function(a,b,c,d,e){console.log(a,b,c,d,e);};
+ debug = function(){console.log([].join.call(arguments," "));};
}
if(USE_VFS){

0 comments on commit 7aacb89

Please sign in to comment.