From: Mark Donnelly Date: Fri, 5 Dec 2014 19:21:38 +0000 (-0500) Subject: Rename gss_eap to gssEap in calling functions X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=commitdiff_plain;h=b4266691f6ba342f0ff2988130d3e9cf09ce2183 Rename gss_eap to gssEap in calling functions --- diff --git a/chrome/test/test.html b/chrome/test/test.html index 22bfde2..7896845 100644 --- a/chrome/test/test.html +++ b/chrome/test/test.html @@ -179,7 +179,7 @@ } function doImportName() { - gss = gss || new navigator.gss_eap({ + gss = gss || new navigator.gssEap({ appTag: "TestApp" }); gss.error = function(major, minor, errMsg, appTag) @@ -204,7 +204,7 @@ } // doImportName function doDisplayName() { - gss = gss || new navigator.gss_eap({ + gss = gss || new navigator.gssEap({ appTag: "TestApp" }); gss.error = function(major, minor, errMsg, appTag) @@ -236,7 +236,7 @@ function doAcquireCred() { - gss = gss || new navigator.gss_eap({ + gss = gss || new navigator.gssEap({ appTag: "TestApp" }); gss.error = function(major, minor, errMsg, appTag) @@ -268,7 +268,7 @@ * Call the init_sec_context routine ********************************************************/ function doInitSecContext() { - gss = gss || new navigator.gss_eap({ + gss = gss || new navigator.gssEap({ appTag: "TestApp", }); gss.error = function(major, minor, errMsg, appTag) diff --git a/navigator.gssweb.js b/navigator.gssweb.js index 3027f97..9d773cc 100644 --- a/navigator.gssweb.js +++ b/navigator.gssweb.js @@ -17,9 +17,8 @@ var GSSWeb = (function () { this.serverToken = ""; this.clientCred = ""; this.xhr = new XMLHttpRequest(); - this.xhr.onreadystatechange = this.recvTokenFromServer.bind(this); - this.gss = new navigator.gss_eap({ + this.gss = new navigator.gssEap({ appTag: this.appTag, error: this.handleGSSError.bind(this) }); @@ -144,6 +143,7 @@ var GSSWeb = (function () { 'Content-Type', 'application/x-www-form-urlencoded' ); + this.xhr.onreadystatechange = this.recvTokenFromServer.bind(this); this.xhr.send(msg); };