refactor client models to use lokijs

This commit is contained in:
Eric Hulburd
2016-02-19 15:42:10 -06:00
parent c26b3b94c3
commit a84df34b55
6 changed files with 172 additions and 227 deletions

View File

@@ -1,4 +1,4 @@
class DateUtil {
class DateRange {
static addRange(new_range, ranges){
var gaps_filled = [], new_ranges = [],
@@ -49,14 +49,6 @@ class DateUtil {
return { gaps_filled: gaps_filled, new_ranges: new_ranges }
}
static min(date1, date2){
}
static max(date1, date2){
}
static gte(date1, date2){
return (date1 === undefined || (date2 !== undefined && date1 >= date2));
}