mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-21 16:00:11 +00:00
fix: add missing require()
This commit is contained in:
parent
8648befcdd
commit
20815d7eff
6
dist/inspectors/duration-inspector.js
vendored
6
dist/inspectors/duration-inspector.js
vendored
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user