Author: igorz
Date: 2007-08-30 09:05:58 -0400 (Thu, 30 Aug 2007)
New Revision: 85041

Modified:
   
trunk/mcs/class/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js
Log:
fixed:
user window.TARGET_J2EE instead TARGET_J2EE 
to avoid "TARGET_J2EE is not defined" exception

Modified: 
trunk/mcs/class/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js
===================================================================
--- 
trunk/mcs/class/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js
       2007-08-30 12:49:07 UTC (rev 85040)
+++ 
trunk/mcs/class/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js
       2007-08-30 13:05:58 UTC (rev 85041)
@@ -4817,14 +4817,14 @@
 
         var request = new Sys.Net.WebRequest();
 
-if(TARGET_J2EE)
+if(window.TARGET_J2EE)
     request.get_headers()['Content-Type'] = 'application/json; charset=utf-8; 
action='+methodName;
 else
     request.get_headers()['Content-Type'] = 'application/json; charset=utf-8';
     if (!params) params = {};
     var urlParams = params;
         if (!useGet || !urlParams) urlParams = {};
-if(TARGET_J2EE)
+if(window.TARGET_J2EE)
     request.set_url(Sys.Net.WebRequest._createUrl(servicePath, urlParams));
 else
     request.set_url(Sys.Net.WebRequest._createUrl(servicePath+"/"+methodName, 
urlParams));

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to