From c773727f312c647750014e906cc9c0b010ab8454 Mon Sep 17 00:00:00 2001 From: ARC Date: Sun, 10 May 2015 17:21:23 -0400 Subject: JSHinted everything, added dependency arrays in all controllers for future minification --- www/js/EventsGraphsCtrl.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'www/js/EventsGraphsCtrl.js') diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js index 5793ed10..94452bc1 100644 --- a/www/js/EventsGraphsCtrl.js +++ b/www/js/EventsGraphsCtrl.js @@ -1,3 +1,8 @@ +/* jshint -W041 */ +/* jshint -W083 */ /*This is for the loop closure I am using in line 143 */ +/* jslint browser: true*/ +/* global cordova,StatusBar,angular,console,moment */ + // This controller generates a graph for events // the main function is generateChart. I call generate chart with required parameters // from the template file @@ -5,11 +10,11 @@ // FIXME: I need to clean this up, the animation is stupid because the data loads // dynamically -angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', function ($ionicPlatform, $scope, ZMDataModel, $ionicSideMenuDelegate, $rootScope, $http) { +angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', ['$ionicPlatform', '$scope', 'ZMDataModel', '$ionicSideMenuDelegate', '$rootScope', '$http', function ($ionicPlatform, $scope, ZMDataModel, $ionicSideMenuDelegate, $rootScope, $http) { console.log("Inside Graphs controller"); $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); - } + }; $scope.$on('$ionicView.loaded', function () { console.log("**VIEW ** Graph Ctrl Loaded"); @@ -79,7 +84,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', functio }, - } + }; var monitors = []; var loginData = ZMDataModel.getLogin(); @@ -143,4 +148,4 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', functio }; // scope function -}); +}]); -- cgit v1.2.3