Skip to content

Commit

Permalink
Revert "minor cleanup: iterating over array using for x in y"
Browse files Browse the repository at this point in the history
This reverts commit 301dfe9.
See: #48
  • Loading branch information
Witold Szczerba committed Oct 31, 2013
1 parent 301dfe9 commit 5dd2ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http-auth-interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
*/
rejectAll: function(reason) {
if (reason) {
for (var i in buffer) {
for (var i = 0; i < buffer.length; ++i) {
buffer[i].deferred.reject(reason);
}
}
Expand All @@ -118,7 +118,7 @@
* Retries all the buffered requests clears the buffer.
*/
retryAll: function(updater) {
for (var i in buffer) {
for (var i = 0; i < buffer.length; ++i) {
retryHttpRequest(updater(buffer[i].config), buffer[i].deferred);
}
buffer = [];
Expand Down

0 comments on commit 5dd2ef6

Please sign in to comment.