Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Consistently treat extension as something we can iterate across (be i…

…t an array or an object). Fix variable assignment.
  • Loading branch information...
commit cdbecbe728782e922fc7d236ee7cfb41ea09de15 1 parent 3f94ea2
Håvard Stranden authored

Showing 1 changed file with 7 additions and 2 deletions. Show diff stats Hide diff stats

  1. +7 2 openid.js
9 openid.js
@@ -874,9 +874,14 @@ var _requestAuthentication = function(provider, assoc_handle, returnUrl, realm,
874 874 params['openid.ns'] = 'http://specs.openid.net/auth/2.0';
875 875 }
876 876
877   - for (var i = 0; i < extensions.length; i++)
  877 + for (var i in extensions)
878 878 {
879   - extension = extensions[i]
  879 + if(!extensions.hasOwnProperty(i))
  880 + {
  881 + continue;
  882 + }
  883 +
  884 + var extension = extensions[i];
880 885 for (var key in extension.requestParams)
881 886 {
882 887 if (!extension.requestParams.hasOwnProperty(key)) { continue; }

0 comments on commit cdbecbe

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