remove Collections.forEach loop

This commit is contained in:
dloverin authored and Erik Tierney committed 2013-04-17 09:12:42 -04:00
1 parent c5052f8e33
commit 725a1e8553
1 file changed
+3 -8
@@ -310,16 +310,11 @@ define(function (require, exports, module) {
var key = file + "@" + offset;
if (CollectionUtils.hasProperty(pendingTernRequests, key)) {
var requests = pendingTernRequests[key],
requestType = requests[type],
anyProperties = false;
requestType = requests[type];
delete pendingTernRequests[key][type];
CollectionUtils.forEach(requests, function (requestValue, requestKey) {
anyProperties = true;
});
if (!anyProperties) {
if (!Object.keys(requests).length) {
delete pendingTernRequests[key];
}