[fusion-commits] r2708 - sandbox/createruntimemap/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Sat May 18 03:45:33 PDT 2013


Author: jng
Date: 2013-05-18 03:45:32 -0700 (Sat, 18 May 2013)
New Revision: 2708

Modified:
   sandbox/createruntimemap/layers/MapGuide/MapGuide.js
Log:
Ensure the root site version and session id are set so that other Fusion.Layer.MapGuide objects don't have to do the same song and dance.

Modified: sandbox/createruntimemap/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/createruntimemap/layers/MapGuide/MapGuide.js	2013-05-18 10:22:54 UTC (rev 2707)
+++ sandbox/createruntimemap/layers/MapGuide/MapGuide.js	2013-05-18 10:45:32 UTC (rev 2708)
@@ -187,6 +187,12 @@
                 );
                 this.checkNativeServiceSupport();
                 this.session[0] = o.sessionId;
+                
+                if (!Fusion.siteVersion)
+                    Fusion.siteVersion = this.siteVersion;
+                if (!Fusion.sessionId)
+                    Fusion.sessionId = o.sessionId;
+                
                 var acceptLang = o.acceptLanguage.split(',');
                 //IE - en-ca,en-us;q=0.8,fr;q=0.5,fr-ca;q=0.3
                 for (var i=0; i<acceptLang.length; ++i) {



More information about the fusion-commits mailing list