Fix binding error in swagger-js file

This commit is contained in:
Mohsen Azimi
2015-03-12 16:05:43 -07:00
parent 9ad29d72b0
commit f35bbc7ec1
3 changed files with 9 additions and 7 deletions

7
dist/swagger-ui.js vendored
View File

@@ -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')});

File diff suppressed because one or more lines are too long

View File

@@ -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')});