diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-10 17:21:23 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-10 17:21:23 -0400 |
| commit | c773727f312c647750014e906cc9c0b010ab8454 (patch) | |
| tree | 76dadfd5f75b55c5200138ee472f309790f2005b /www/js/MontageCtrl.js | |
| parent | f2e3d1c121903f36fe996538b14429da733c06e7 (diff) | |
JSHinted everything, added dependency arrays in all controllers for future minification
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 12 |
1 files changed, 8 insertions, 4 deletions
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() { }); }; -}); +}]); |
