mirror of https://gitee.com/bigwinds/arangodb
fixed jslint warnings
This commit is contained in:
parent
cd72ef9d79
commit
bb7445a547
|
@ -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"),
|
||||
|
|
|
@ -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 */
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue