summaryrefslogtreecommitdiff
path: root/js/src/Ice/OutgoingConnectionFactory.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/OutgoingConnectionFactory.js')
-rw-r--r--js/src/Ice/OutgoingConnectionFactory.js15
1 files changed, 7 insertions, 8 deletions
diff --git a/js/src/Ice/OutgoingConnectionFactory.js b/js/src/Ice/OutgoingConnectionFactory.js
index 12fec6c67e5..d0f8a74e5b8 100644
--- a/js/src/Ice/OutgoingConnectionFactory.js
+++ b/js/src/Ice/OutgoingConnectionFactory.js
@@ -152,14 +152,13 @@ var OutgoingConnectionFactory = Class({
//
endpoint = endpoint.changeCompress(false);
- for(var j = 0; j < self._connectionsByEndpoint.length; ++j)
- {
- var connection = self._connectionsByEndpoint[j];
- if(connection.endpoint().equals(endpoint))
- {
- connection.setAdapter(adapter);
- }
- }
+ self._connectionsByEndpoint.forEach(function(connection)
+ {
+ if(connection.endpoint().equals(endpoint))
+ {
+ connection.setAdapter(adapter);
+ }
+ });
}
}
);