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;
};
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev