Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 49c12602d96a87a5ece05c7a4122b6fc6b9141ad 1 parent 0097686
Gregory Waxman Akkuma authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 openid.js
4 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;
Please sign in to comment.
Something went wrong with that request. Please try again.