fix: add missing require()

This commit is contained in:
hacksalot 2018-02-09 00:06:07 -05:00
parent 8648befcdd
commit 20815d7eff
No known key found for this signature in database
GPG Key ID: 2F343EC247CA4B06
2 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,12 @@
(function() {
var FluentDate, _;
var FluentDate, _, lo;
FluentDate = require('../core/fluent-date');
_ = require('underscore');
lo = require('lodash');
module.exports = {
/**
@ -17,7 +19,7 @@
run: function(rez, collKey, startKey, endKey, unit) {
var firstDate, hist, lastDate, new_e;
unit = unit || 'years';
hist = __.get(rez, collKey);
hist = lo.get(rez, collKey);
if (!hist || !hist.length) {
return 0;
}

View File

@ -1,5 +1,6 @@
FluentDate = require '../core/fluent-date'
_ = require 'underscore'
lo = require 'lodash'
module.exports =
@ -12,7 +13,7 @@ module.exports =
###
run: (rez, collKey, startKey, endKey, unit) ->
unit = unit || 'years'
hist = __.get rez, collKey
hist = lo.get rez, collKey
return 0 if !hist or !hist.length
# BEGIN CODE DUPLICATION --> src/inspectors/gap-inspector.coffee (TODO)