[esb-java-dev] svn commit r10749 - trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators

svn at wso2.org svn at wso2.org
Sun Dec 9 20:40:33 PST 2007


Author: ruwan
Date: Sun Dec  9 20:40:28 2007
New Revision: 10749

Log:

Fixing the issue ESBJAVA-394

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

Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js	(original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/cache_mediator.js	Sun Dec  9 20:40:28 2007
@@ -18,7 +18,7 @@
  * This js file is for the clone mediator specific UI operations
  */
 
-collectdata["cache"] = function collectclonedata(mediator, validate) {
+collectdata["cache"] = function collectcachedata(mediator, validate) {
 
     var cache_id = document.getElementById("cache_id");
     var cache_scope = document.getElementById("cache_scope");
@@ -76,12 +76,10 @@
                         i--;
                     }
                 }
-                if (mediatorChilds[i].localName == "onCacheHit") {
+                if (i > 0 && mediatorChilds[i].localName == "onCacheHit") {
                     if (mediatorChilds[i].childNodes.length == 0) {
                         mediator.removeChild(mediatorChilds[i]);
-                        if (i > 0) {
-                            i--;
-                        }
+                        i--;
                     }
                 }
             }
@@ -98,7 +96,6 @@
         }
     }
 
-
     return true;
 };
 



More information about the Esb-java-dev mailing list