From 3a70029aba6d768be642844b853cfc9383b8e91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vachon?= Date: Wed, 28 Jan 2015 14:04:44 -0500 Subject: [PATCH] JSLint: filters, table, sidebar --- Gruntfile.js | 3 ++- app/components/filters/filters.js | 4 ++-- app/sidebar/sidebar.js | 5 ++--- app/table/table.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 17024c1..0ce1a93 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -57,7 +57,8 @@ module.exports = function (grunt) { nomen: true, predef: [ // Global variables 'angular', 'inject', 'JustGage', - 'describe', 'beforeEach', 'it', 'expect' + 'describe', 'beforeEach', 'it', 'expect', + 'moment' ] }, options: { diff --git a/app/components/filters/filters.js b/app/components/filters/filters.js index d657701..5e3d66d 100644 --- a/app/components/filters/filters.js +++ b/app/components/filters/filters.js @@ -3,7 +3,7 @@ angular.module('adagios.filters', []) .filter('timeElapsed', [function () { - return function(input) { + return function (input) { return moment.unix(input).fromNow(); - } + }; }]); diff --git a/app/sidebar/sidebar.js b/app/sidebar/sidebar.js index 23d8ccb..c294687 100644 --- a/app/sidebar/sidebar.js +++ b/app/sidebar/sidebar.js @@ -3,9 +3,8 @@ angular.module('adagios.sidebar', []) .controller('SideBarCtrl', ['$scope', '$http', function ($scope, $http) { - return; - - }]) + angular.noop(); + }]) .directive('adgSidebar', function () { return { diff --git a/app/table/table.js b/app/table/table.js index fe52aaa..b9b7ead 100644 --- a/app/table/table.js +++ b/app/table/table.js @@ -25,7 +25,7 @@ angular.module('adagios.table', ['ngRoute', }); }); - new GetServices(requestFields,) + new GetServices(requestFields, filters) .success(function (data) { $scope.entries = data; });