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/MontageCtrl.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index c85011b0..3500dbfa 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -1,6 +1,10 @@ // Controller for the montage view +/* jshint -W041 */ +/* jslint browser: true*/ +/* global cordova,StatusBar,angular,console */ -angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', function ($scope, $rootScope, ZMDataModel, message,$ionicSideMenuDelegate, $timeout, $interval) { + +angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', '$rootScope', 'ZMDataModel', 'message','$ionicSideMenuDelegate', '$timeout', '$interval', function ($scope, $rootScope, ZMDataModel, message,$ionicSideMenuDelegate, $timeout, $interval) { var timestamp = new Date().getUTCMilliseconds(); @@ -42,7 +46,7 @@ function onPause() { $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); - } + }; $scope.$on('$destroy', function () { console.log ("*** CANCELLING INTERVAL ****"); @@ -70,7 +74,7 @@ function onPause() { $scope.isSimulated = function () { return ZMDataModel.isSimulated(); - } + }; @@ -117,4 +121,4 @@ function onPause() { }); }; -}); +}]); -- cgit v1.2.3