Skip to content

Commit 229da65

Browse files
committed
merged patch from #96
1 parent 9033459 commit 229da65

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/swagger.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ SwaggerHttp.prototype.isIE8 = function() {
12711271
var 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)

0 commit comments

Comments
 (0)