[Commits] r1024 - apps/opengeo/geoexplorer/trunk/lib

commits at geoext.org commits at geoext.org
Tue Jun 9 11:35:31 CEST 2009


Author: ahocevar
Date: 2009-06-09 11:35:30 +0200 (Tue, 09 Jun 2009)
New Revision: 1024

Modified:
   apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
made handling of server response IE proof: remember to always check for responseXML.documentElement.

Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-06-08 22:14:27 UTC (rev 1023)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js	2009-06-09 09:35:30 UTC (rev 1024)
@@ -194,7 +194,9 @@
                                 {name: "source_id", type: "string"}
                             ]
                         });
-                var data = request.responseXML || request.responseText;
+                var xml = request.responseXML;
+                var data = (xml && xml.documentElement) ?
+                    xml : request.responseText;
                 
                 try {
                     // Read the response. It's important to note that the



More information about the Commits mailing list