diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-08 20:42:00 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-08 20:42:00 -0800 |
commit | 2d81a0aae02561518c006247736e2cfe0c9a1400 (patch) | |
tree | 51a64173730bcc183d0c273e0da80af89a3e766f /src | |
parent | 5af636809cd7ab40f74e79a0350cdc11b53086ca (diff) | |
download | DotNetOpenAuth-2d81a0aae02561518c006247736e2cfe0c9a1400.zip DotNetOpenAuth-2d81a0aae02561518c006247736e2cfe0c9a1400.tar.gz DotNetOpenAuth-2d81a0aae02561518c006247736e2cfe0c9a1400.tar.bz2 |
Fixed js bug that broke logging in with OPs that provided no extension responses.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.js b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.js index 4975812..6faad56 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.js +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingPartyAjaxControlBase.js @@ -33,8 +33,13 @@ window.dnoa_internal.argsToString = function() { for (var i = 0; i < arguments.length; i++) { if (i > 0) { result += ', '; } var arg = arguments[i]; - if (typeof (arg) == 'string') { arg = '"' + arg + '"'; } - if (arg === null) { arg = '[null]'; } + if (typeof (arg) == 'string') { + arg = '"' + arg + '"'; + } else if (arg === null) { + arg = '[null]'; + } else if (arg === undefined) { + arg = '[undefined]'; + } result += arg.toString(); } result += ')'; |