From b7e6b5dfcad7d10aa82d32da9d3aafa56a5407d1 Mon Sep 17 00:00:00 2001 From: hkernbach Date: Thu, 14 Apr 2016 15:38:39 +0200 Subject: [PATCH] jslint frontend --- .../APP/frontend/js/collections/_automaticRetryCollection.js | 2 +- .../js/collections/arangoClusterStatisticsCollection.js | 2 ++ .../APP/frontend/js/collections/clusterCoordinators.js | 2 +- .../aardvark/APP/frontend/js/collections/clusterServers.js | 4 ++-- .../system/_admin/aardvark/APP/frontend/js/routers/router.js | 4 ++-- .../_admin/aardvark/APP/frontend/js/views/clusterView.js | 4 ++-- .../_admin/aardvark/APP/frontend/js/views/footerView.js | 2 +- .../_admin/aardvark/APP/frontend/js/views/showClusterView.js | 2 +- 8 files changed, 12 insertions(+), 10 deletions(-) diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/_automaticRetryCollection.js b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/_automaticRetryCollection.js index 4284bfd906..233d924aae 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/_automaticRetryCollection.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/_automaticRetryCollection.js @@ -1,4 +1,4 @@ -/*global window, Backbone, console */ +/*global window, Backbone */ (function() { "use strict"; diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/arangoClusterStatisticsCollection.js b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/arangoClusterStatisticsCollection.js index b2463eea39..a97060eb13 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/arangoClusterStatisticsCollection.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/arangoClusterStatisticsCollection.js @@ -1,4 +1,6 @@ /*global Backbone, window */ +/* jshint strict: false */ + window.ClusterStatisticsCollection = Backbone.Collection.extend({ model: window.Statistics, diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterCoordinators.js b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterCoordinators.js index 94da4752bd..322a092945 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterCoordinators.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterCoordinators.js @@ -1,4 +1,4 @@ -/*global window, Backbone, console */ +/*global window */ (function() { "use strict"; window.ClusterCoordinators = window.AutomaticRetryCollection.extend({ diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterServers.js b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterServers.js index 6e09b18933..e20021a204 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterServers.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/collections/clusterServers.js @@ -1,4 +1,4 @@ -/*global window, Backbone, _, console */ +/*global window */ (function() { "use strict"; @@ -77,7 +77,7 @@ }); }, - getList: function(callback) { + getList: function() { throw "Do not use"; /* var self = this; diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/routers/router.js b/js/apps/system/_admin/aardvark/APP/frontend/js/routers/router.js index 0aefbd8d8f..f998808f3b 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/routers/router.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/routers/router.js @@ -1,6 +1,6 @@ /*jshint unused: false */ /*global window, $, Backbone, document, arangoCollectionModel*/ -/*global arangoHelper,dashboardView,arangoDatabase, _*/ +/*global arangoHelper, btoa, dashboardView, arangoDatabase, _*/ (function () { "use strict"; @@ -271,7 +271,7 @@ logs: function (name, initialized) { this.checkUser(); if (!initialized) { - this.waitForInit(this.logs.bind(this), logs); + this.waitForInit(this.logs.bind(this), name); return; } if (!this.logsView) { diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/clusterView.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/clusterView.js index bb32467339..1a9ff24cd5 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/clusterView.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/clusterView.js @@ -33,8 +33,8 @@ //start polling with interval window.setInterval(function() { - if (window.location.hash === '#cluster' - || window.location.hash === '#') { + if (window.location.hash === '#cluster' + || window.location.hash === '#') { var callback = function(data) { self.rerenderValues(data); self.rerenderGraphs(data); diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/footerView.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/footerView.js index 613ea4be10..987699b6e5 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/footerView.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/footerView.js @@ -32,7 +32,7 @@ template: templateEngine.createTemplate("footerView.ejs"), showServerStatus: function(isOnline) { - if (!window.App.isCluster) { + if (!window.App.isCluster) { if (isOnline === true) { $('#healthStatus').removeClass('negative'); $('#healthStatus').addClass('positive'); diff --git a/js/apps/system/_admin/aardvark/APP/frontend/js/views/showClusterView.js b/js/apps/system/_admin/aardvark/APP/frontend/js/views/showClusterView.js index 8c9a0c2f7f..9dc5e37378 100644 --- a/js/apps/system/_admin/aardvark/APP/frontend/js/views/showClusterView.js +++ b/js/apps/system/_admin/aardvark/APP/frontend/js/views/showClusterView.js @@ -1,4 +1,4 @@ -/*global window, $, Backbone, templateEngine, alert, _, d3, Dygraph, document */ +/*global window, $, Backbone, templateEngine, _, d3, Dygraph, document */ (function() { "use strict";