File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1271,7 +1271,7 @@ SwaggerHttp.prototype.isIE8 = function() {
12711271var JQueryHttpClient = function ( options ) {
12721272 "use strict" ;
12731273 if ( ! jQuery ) {
1274- var jQuery = window . jQuery ;
1274+ var jQuery = window . jQuery ;
12751275 }
12761276}
12771277
@@ -1346,7 +1346,7 @@ JQueryHttpClient.prototype.execute = function(obj) {
13461346 else
13471347 return cb . response ( out ) ;
13481348 } ;
1349-
1349+
13501350 jQuery . support . cors = true ;
13511351 return jQuery . ajax ( obj ) ;
13521352}
@@ -1467,8 +1467,8 @@ SwaggerAuthorizations.prototype.apply = function(obj, authorizations) {
14671467 var status = null ;
14681468 var key ;
14691469
1470+ // if the "authorizations" key is undefined, or has an empty array, add all keys
14701471 if ( typeof authorizations === 'undefined' || Object . keys ( authorizations ) . length == 0 ) {
1471- log ( "adding all keys" ) ;
14721472 for ( key in this . authz ) {
14731473 value = this . authz [ key ] ;
14741474 result = value . apply ( obj , authorizations ) ;
@@ -1480,7 +1480,6 @@ SwaggerAuthorizations.prototype.apply = function(obj, authorizations) {
14801480 for ( name in authorizations ) {
14811481 for ( key in this . authz ) {
14821482 if ( key == name ) {
1483- log ( "adding key " + key ) ;
14841483 value = this . authz [ key ] ;
14851484 result = value . apply ( obj , authorizations ) ;
14861485 if ( result === true )
You can’t perform that action at this time.
0 commit comments