This commit is contained in:
Henry
2015-10-08 16:04:14 -07:00
parent 67d78772fa
commit 9b11d95437
5 changed files with 123 additions and 4 deletions

View File

@ -31,9 +31,15 @@ define(
* could be adapted to provide data from remote source.
* @constructor
*/
function RemsTelemetryServerAdapter(){
function RemsTelemetryServerAdapter($q, $http){
var histories = {};
return {
"dictionary": RemsDataDictionary
dictionary: RemsDataDictionary,
history: function(id) {
histories[id] = histories[id] || $q.defer();
return histories[id].promise;
}
};
}
return RemsTelemetryServerAdapter;