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 2010/12/15 21:46:28 UTC
svn commit: r1049703 -
/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Author: johnh
Date: Wed Dec 15 20:46:28 2010
New Revision: 1049703
URL: http://svn.apache.org/viewvc?rev=1049703&view=rev
Log:
Let useLegacyProtocol be a string. This is the last transitionary step to getting rid of it altogether, as it makes config more flexible (during transition).
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=1049703&r1=1049702&r2=1049703&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/rpc/rpc.js (original)
+++ shindig/trunk/features/src/main/javascript/features/rpc/rpc.js Wed Dec 15 20:46:28 2010
@@ -596,7 +596,9 @@ if (!gadgets.rpc) { // make lib resilien
}
}
- var useLegacy = !!configRpc.useLegacyProtocol;
+ var configLegacy = configRpc.useLegacyProtocol;
+ if (typeof configLegacy == "string") { configLegacy = (configLegacy == "true") }
+ var useLegacy = !!configLegacy;
setRelayUrl('..', parentRelayUrl, useLegacy);
if (useLegacy) {