Remove all references to swaggerUi global instance

This commit is contained in:
Mohsen Azimi
2015-03-16 13:52:38 -07:00
parent 79d9d1cf0d
commit 51bbbf03db
7 changed files with 53 additions and 35 deletions

View File

@@ -232,7 +232,11 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
addStatusCode: function(statusCode) {
// Render status codes
var statusCodeView = new SwaggerUi.Views.StatusCodeView({model: statusCode, tagName: 'tr'});
var statusCodeView = new SwaggerUi.Views.StatusCodeView({
model: statusCode,
tagName: 'tr',
router: this.router
});
$('.operation-status', $(this.el)).append(statusCodeView.render().el);
},