Skip to content
Browse files

for (var s in services) was dangerous as it didn't do a hasOwnPropert…

…y check, creating an error within TowerJS. Additionally, s was only being used as the index anyway, so switched to a regular for loop.
  • Loading branch information...
1 parent a7615e3 commit 00976868d3b3f3138f67ac89fd145ccebf52d217 @Akkuma Akkuma committed Apr 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 openid.js
View
4 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;

0 comments on commit 0097686

Please sign in to comment.
Something went wrong with that request. Please try again.