Fix binding error in swagger-js file
This commit is contained in:
7
dist/swagger-ui.js
vendored
7
dist/swagger-ui.js
vendored
@@ -49,9 +49,10 @@ var SwaggerUi = Backbone.Router.extend({
|
||||
marked.setOptions({gfm: true});
|
||||
|
||||
// Set the callbacks
|
||||
this.options.success = function() { return this.render(); };
|
||||
this.options.progress = function(d) { return this.showMessage(d); };
|
||||
this.options.failure = function(d) { return this.onLoadFailure(d); };
|
||||
var that = this;
|
||||
this.options.success = function() { return that.render(); };
|
||||
this.options.progress = function(d) { return that.showMessage(d); };
|
||||
this.options.failure = function(d) { return that.onLoadFailure(d); };
|
||||
|
||||
// Create view to handle the header inputs
|
||||
this.headerView = new HeaderView({el: $('#header')});
|
||||
|
||||
2
dist/swagger-ui.min.js
vendored
2
dist/swagger-ui.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -43,9 +43,10 @@ var SwaggerUi = Backbone.Router.extend({
|
||||
marked.setOptions({gfm: true});
|
||||
|
||||
// Set the callbacks
|
||||
this.options.success = function() { return this.render(); };
|
||||
this.options.progress = function(d) { return this.showMessage(d); };
|
||||
this.options.failure = function(d) { return this.onLoadFailure(d); };
|
||||
var that = this;
|
||||
this.options.success = function() { return that.render(); };
|
||||
this.options.progress = function(d) { return that.showMessage(d); };
|
||||
this.options.failure = function(d) { return that.onLoadFailure(d); };
|
||||
|
||||
// Create view to handle the header inputs
|
||||
this.headerView = new HeaderView({el: $('#header')});
|
||||
|
||||
Reference in New Issue
Block a user