You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by jo...@apache.org on 2011/04/21 01:48:44 UTC
svn commit: r1095561 -
/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Author: johnh
Date: Wed Apr 20 23:48:44 2011
New Revision: 1095561
URL: http://svn.apache.org/viewvc?rev=1095561&view=rev
Log:
Fix use of console.log in gadgets.rpc
Modified:
shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Modified: shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=1095561&r1=1095560&r2=1095561&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/rpc/rpc.js (original)
+++ shindig/trunk/features/src/main/javascript/features/rpc/rpc.js Wed Apr 20 23:48:44 2011
@@ -139,7 +139,7 @@ if (!gadgets.rpc) { // make lib resilien
// and logs info on calls it receives, to avoid undesired side-effects
// from falling back to IFPC or some other transport.
var console = window['console'];
- var clog = console && console.log ? console.log : function(){};
+ var clog = console && console.log && function(msg) { console.log(msg); } || function(){};
var fallbackTransport = (function() {
function logFn(name) {
return function() {