svn commit r9278 - trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r9278 - trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators

svn-9
Author: indika
Date: Mon Oct 29 04:06:54 2007
New Revision: 9278

Modified:
   trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/script_mediator.js
Log:


Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/script_mediator.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/script_mediator.js (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/script_mediator.js Mon Oct 29 04:06:54 2007
@@ -49,14 +49,14 @@
                     var doc = new ActiveXObject("Microsoft.XMLDOM");
                     doc.async = "false";
                     var sourceScript = doc.createCDATASection(source);
-                    if (sourceScript != undefined || sourceScript != null) {
+                    if (sourceScript != undefined && sourceScript != null) {
                         mediator.appendChild(sourceScript);
                     }
                 } else if (browsername.indexOf(NETSCAPE_BROWSER_NAME) != -1) {
                     var parser = new DOMParser();
                     var doc = parser.parseFromString("", "text/xml");
                     var sourceScript = doc.createCDATASection(source);
-                    if (sourceScript != undefined || sourceScript != null) {
+                    if (sourceScript != undefined && sourceScript != null) {
                         mediator.appendChild(sourceScript);
                     }
                 }
@@ -179,14 +179,14 @@
             var doc = new ActiveXObject("Microsoft.XMLDOM");
             doc.async = "false";
             var sourceScript = doc.createCDATASection(source);
-            if (sourceScript != undefined || sourceScript != null) {
+            if (sourceScript != undefined && sourceScript != null) {
                 mediator.appendChild(sourceScript);
             }
         } else if (browsername.indexOf(NETSCAPE_BROWSER_NAME) != -1) {
             var parser = new DOMParser();
             var doc = parser.parseFromString("", "text/xml");
             var sourceScript = doc.createCDATASection(source);
-            if (sourceScript != undefined || sourceScript != null) {
+            if (sourceScript != undefined && sourceScript != null) {
                 mediator.appendChild(sourceScript);
             }
         }

_______________________________________________
Esb-java-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev