Permalink
Browse files

Merge pull request #71 from Akkuma/patch-1

Change for in to a regular for
  • Loading branch information...
2 parents 55160d7 + f142d8d commit b5db81738c6430768ec32cc8528be31270b7291c @havard committed Apr 22, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/xrds.js
  2. +4 −4 openid.js
View
2 lib/xrds.js
@@ -37,7 +37,7 @@ exports.parse = function(data)
return services;
}
- for(var s in serviceMatches)
+ for(var s = 0, len = serviceMatches.length; s < len; ++s)
{
var service = serviceMatches[s];
var svcs = [];
View
8 openid.js
@@ -319,9 +319,9 @@ var _parseXrds = function(xrdsUrl, xrdsData)
}
var providers = [];
- for(var s in services)
+ for(var i = 0, len = services.length; i < len; ++i)
{
- var service = services[s];
+ var service = services[i];
var provider = {};
provider.endpoint = service.uri;
@@ -596,9 +596,9 @@ openid.discover = function(identifier, strict, callback)
{
// Add claimed identifier to providers with local identifiers
// to ensure correct resolution of identities
- for(var p in providers)
+ for(var i = 0, len = providers.length; i < len; ++i)
{
- var provider = providers[p];
+ var provider = providers[i];
if(!provider.claimedIdentifier && provider.localIdentifier)
{
provider.claimedIdentifier = identifier;

0 comments on commit b5db817

Please sign in to comment.