You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by et...@apache.org on 2008/09/06 09:44:42 UTC

svn commit: r692621 - /incubator/shindig/trunk/features/core.io/io.js

Author: etnu
Date: Sat Sep  6 00:44:41 2008
New Revision: 692621

URL: http://svn.apache.org/viewvc?rev=692621&view=rev
Log:
Support 'synd' as well as 'container' url param to match legacy compatibility elsewhere.


Modified:
    incubator/shindig/trunk/features/core.io/io.js

Modified: incubator/shindig/trunk/features/core.io/io.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core.io/io.js?rev=692621&r1=692620&r2=692621&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core.io/io.js (original)
+++ incubator/shindig/trunk/features/core.io/io.js Sat Sep  6 00:44:41 2008
@@ -434,12 +434,14 @@
       if (refresh === undefined) {
         refresh = "3600";
       }
+      
+      var urlParams = gadgets.util.getUrlParameters();
 
       return config.proxyUrl.replace("%url%", encodeURIComponent(url)).
           replace("%rawurl%", url).
           replace("%refresh%", encodeURIComponent(refresh)).
-          replace("%gadget%", encodeURIComponent(gadgets.util.getUrlParameters().url)).
-          replace("%container%", encodeURIComponent(gadgets.util.getUrlParameters().container));
+          replace("%gadget%", encodeURIComponent(urlParams.url)).
+          replace("%container%", encodeURIComponent(urlParams.container || urlParams.synd));
     }
   };
 }();