1
0
Fork 0

fixed jslint warnings

This commit is contained in:
Jan Steemann 2013-06-11 18:47:15 +02:00
parent cd72ef9d79
commit bb7445a547
3 changed files with 11 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global require, exports, Backbone, EJS, $*/
/*global window, document, Backbone, EJS, SwaggerUi, hljs, $ */
window.apiView = Backbone.View.extend({
el: '#content',
@ -17,7 +17,9 @@ window.apiView = Backbone.View.extend({
supportHeaderParams: true,
supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch', 'head'],
onComplete: function(swaggerApi, swaggerUi){
$('pre code').each(function(i, e) {hljs.highlightBlock(e);});
$('pre code').each(function(i, e) {
hljs.highlightBlock(e);
});
},
onFailure: function(data) {
var div = document.createElement("div"),

View File

@ -1,4 +1,4 @@
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true, evil: true */
/*global require */
////////////////////////////////////////////////////////////////////////////////

View File

@ -1335,7 +1335,11 @@ function reloadRouting () {
}
}
installRoute(RoutingCache[arangodb.db._name()][key], urlPrefix, modulePrefix, context, r[i]);
installRoute(RoutingCache[arangodb.db._name()][key],
urlPrefix,
modulePrefix,
context,
r[i]);
}
}
}
@ -1443,7 +1447,7 @@ function firstRouting (type, parts) {
var url = parts;
if (undefined == RoutingCache[arangodb.db._name()]) {
if (undefined === RoutingCache[arangodb.db._name()]) {
reloadRouting();
}