Fix JSHint issues

This commit is contained in:
Mohsen Azimi
2015-03-23 16:00:43 -07:00
parent 93c18d59b8
commit b58eee10e7
6 changed files with 8 additions and 11 deletions

View File

@@ -17,6 +17,7 @@
"strict": true,
"trailing": true,
"smarttabs": true,
"validthis": true,
"globals": {
// Libraries
@@ -29,6 +30,7 @@
"SwaggerClient": false,
"hljs": false,
"SwaggerUi": false,
"define": false,
// Global object
// TODO: remove these

View File

@@ -6,8 +6,4 @@ install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm i -g jshint
- npm install
script:
- jshint .
- npm test
- npm install

3
dist/swagger-ui.js vendored
View File

@@ -6,7 +6,7 @@
*/
(function(){'use strict';
var SwaggerUi = Backbone.Router.extend({
window.SwaggerUi = Backbone.Router.extend({
dom_id: 'swagger_ui',
@@ -201,7 +201,6 @@ var SwaggerUi = Backbone.Router.extend({
});
window.SwaggerUi = SwaggerUi;
window.SwaggerUi.Views = {};
// don't break backward compatibility with previous versions and warn users to upgrade their code

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,7 @@
"scripts": {
"build": "./node_modules/gulp/bin/gulp.js;",
"serve": "./node_modules/gulp/bin/gulp.js serve;",
"pretest": "jshint .",
"test": "./node_modules/gulp/bin/gulp.js; ./node_modules/mocha/bin/mocha"
},
"repository": {

View File

@@ -1,6 +1,6 @@
'use strict';
var SwaggerUi = Backbone.Router.extend({
window.SwaggerUi = Backbone.Router.extend({
dom_id: 'swagger_ui',
@@ -195,7 +195,6 @@ var SwaggerUi = Backbone.Router.extend({
});
window.SwaggerUi = SwaggerUi;
window.SwaggerUi.Views = {};
// don't break backward compatibility with previous versions and warn users to upgrade their code