support for use_strict

This commit is contained in:
Ted Goddard 2014-04-17 11:18:11 -06:00
parent edb8a4c18e
commit 9b538ba09a
1 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ exports.OAuth.prototype._sortRequestParams= function(argument_pairs) {
return argument_pairs; return argument_pairs;
} }
exports.OAuth.prototype._normaliseRequestParams= function(arguments) { exports.OAuth.prototype._normaliseRequestParams= function(args) {
var argument_pairs= this._makeArrayOfArgumentsHash(arguments); var argument_pairs= this._makeArrayOfArgumentsHash(args);
// First encode them #3.4.1.3.2 .1 // First encode them #3.4.1.3.2 .1
for(var i=0;i<argument_pairs.length;i++) { for(var i=0;i<argument_pairs.length;i++) {
argument_pairs[i][0]= this._encodeData( argument_pairs[i][0] ); argument_pairs[i][0]= this._encodeData( argument_pairs[i][0] );
@ -372,7 +372,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
// allow this behaviour. // allow this behaviour.
var allowEarlyClose= OAuthUtils.isAnEarlyCloseHost( parsedUrl.hostname ); var allowEarlyClose= OAuthUtils.isAnEarlyCloseHost( parsedUrl.hostname );
var callbackCalled= false; var callbackCalled= false;
function passBackControl( response ) { var passBackControl = function( response ) {
if(!callbackCalled) { if(!callbackCalled) {
callbackCalled= true; callbackCalled= true;
if ( response.statusCode >= 200 && response.statusCode <= 299 ) { if ( response.statusCode >= 200 && response.statusCode <= 299 ) {