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/DataModel.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index a4f471ef..41e166c9 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -1,3 +1,7 @@ +/* jshint -W041 */ +/* jslint browser: true*/ +/* global cordova,StatusBar,angular,console */ + // This is my central data respository and common functions // that many other controllers use // It's grown over time. I guess I may have to split this into multiple services in the future @@ -300,7 +304,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', ['$http', '$q', '$ion var myurl = (monitorId == 0) ? apiurl + "/events.json" : apiurl + "/events/index/MonitorId:" + monitorId + ".json"; if (pageId) { - var myurl = myurl + "?page=" + pageId; + myurl = myurl + "?page=" + pageId; } else { console.log("**** PAGE WAS " + pageId); } @@ -346,7 +350,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', ['$http', '$q', '$ion oldevents = []; } return d.promise; - }) + }); return d.promise; } // not simulated }, -- cgit v1.2.3