From b4266691f6ba342f0ff2988130d3e9cf09ce2183 Mon Sep 17 00:00:00 2001 From: Mark Donnelly Date: Fri, 5 Dec 2014 14:21:38 -0500 Subject: [PATCH] Rename gss_eap to gssEap in calling functions --- chrome/test/test.html | 8 ++++---- navigator.gssweb.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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); }; -- 2.1.4