summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-10 17:21:23 -0400
committerARC <arjunrc@gmail.com>2015-05-10 17:21:23 -0400
commitc773727f312c647750014e906cc9c0b010ab8454 (patch)
tree76dadfd5f75b55c5200138ee472f309790f2005b /www/js/DataModel.js
parentf2e3d1c121903f36fe996538b14429da733c06e7 (diff)
JSHinted everything, added dependency arrays in all controllers for future minification
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js8
1 files changed, 6 insertions, 2 deletions
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
},