Author: lindner
Date: Thu Jun 9 08:44:20 2011
New Revision: 1133722
URL: http://svn.apache.org/viewvc?rev=1133722&view=rev
Log:
Patch from mhermanto: Avoid stomping of useLegacyProtocol for 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=1133722&r1=1133721&r2=1133722&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/rpc/rpc.js (original)
+++ shindig/trunk/features/src/main/javascript/features/rpc/rpc.js Thu Jun 9
08:44:20 2011
@@ -611,7 +611,9 @@ if (!window['gadgets']['rpc']) { // make
}
}
relayUrl[targetId] = url;
- useLegacyProtocol[targetId] = !!opt_useLegacy;
+ if (typeof opt_useLegacy !== 'undefined') {
+ useLegacyProtocol[targetId] = !!opt_useLegacy;
+ }
}
/**
@@ -904,7 +906,7 @@ if (!window['gadgets']['rpc']) { // make
'c': callback ? callId : 0,
'a': Array.prototype.slice.call(arguments, 3),
't': authToken[targetId],
- 'l': useLegacyProtocol[targetId]
+ 'l': !!useLegacyProtocol[targetId]
};
var referrer = getReferrer(targetId);