Permalink
Browse files

Another instance of for in that didn't use a hasOwnProperty and was s…

…imple index accessing. Plus for in is slower than a normal for loop.
  • Loading branch information...
1 parent 0097686 commit 49c12602d96a87a5ece05c7a4122b6fc6b9141ad @Akkuma Akkuma committed Apr 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 openid.js
View
@@ -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 49c1260

Please sign in to comment.