fix for lint errors

This commit is contained in:
Tony Tam
2015-06-03 23:04:57 -07:00
parent 1f6d89cda4
commit 9ba75c02be
3 changed files with 10 additions and 16 deletions

11
dist/swagger-ui.js vendored
View File

@@ -21409,7 +21409,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} else { } else {
this.map = map this.map = map;
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} }
} }
@@ -21721,15 +21721,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$('.response_throbber', $(this.el)).hide(); $('.response_throbber', $(this.el)).hide();
//adds curloutput //adds curl output
var curlCommand = swaggerUi.api[this.parentId][this.nickname].asCurl(this.map); var curlCommand = this.model.asCurl(this.map);
console.log(curlCommand); console.log(curlCommand);
curlCommand = curlCommand.replace("!", "!"); curlCommand = curlCommand.replace('!', '!');
$( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>'); $( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
var response_body_el = $('.response_body', $(this.el))[0];
// only highlight the response if response is less than threshold, default state is highlight response // only highlight the response if response is less than threshold, default state is highlight response
var opts = this.options.swaggerOptions; var opts = this.options.swaggerOptions;

File diff suppressed because one or more lines are too long

View File

@@ -335,7 +335,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} else { } else {
this.map = map this.map = map;
return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this); return this.model.execute(map, opts, this.showCompleteStatus, this.showErrorStatus, this);
} }
} }
@@ -647,15 +647,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
$('.response_throbber', $(this.el)).hide(); $('.response_throbber', $(this.el)).hide();
//adds curloutput //adds curl output
var curlCommand = swaggerUi.api[this.parentId][this.nickname].asCurl(this.map); var curlCommand = this.model.asCurl(this.map);
console.log(curlCommand); console.log(curlCommand);
curlCommand = curlCommand.replace("!", "&#33;"); curlCommand = curlCommand.replace('!', '&#33;');
$( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>'); $( '.curl', $(this.el)).html('<pre>' + curlCommand + '</pre>');
var response_body_el = $('.response_body', $(this.el))[0];
// only highlight the response if response is less than threshold, default state is highlight response // only highlight the response if response is less than threshold, default state is highlight response
var opts = this.options.swaggerOptions; var opts = this.options.swaggerOptions;