Fix all JSHint errors

This commit is contained in:
Mohsen Azimi
2015-03-12 16:50:57 -07:00
parent 096cd120a4
commit 07ac7fcf95
10 changed files with 22 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
'use strict';
var StatusCodeView = Backbone.View.extend({
SwaggerUi.Views.StatusCodeView = Backbone.View.extend({
initialize: function () {
},
@@ -8,6 +8,7 @@ var StatusCodeView = Backbone.View.extend({
render: function(){
$(this.el).html(Handlebars.templates.status_code(this.model));
// TODO get rid of "swaggerUi" global dependency
if (swaggerUi.api.models.hasOwnProperty(this.model.responseModel)) {
var responseModel = {
sampleJSON: JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(), null, 2),