mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-25 01:40:10 +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() {
|
(function() {
|
||||||
var FluentDate, _;
|
var FluentDate, _, lo;
|
||||||
|
|
||||||
FluentDate = require('../core/fluent-date');
|
FluentDate = require('../core/fluent-date');
|
||||||
|
|
||||||
_ = require('underscore');
|
_ = require('underscore');
|
||||||
|
|
||||||
|
lo = require('lodash');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -17,7 +19,7 @@
|
|||||||
run: function(rez, collKey, startKey, endKey, unit) {
|
run: function(rez, collKey, startKey, endKey, unit) {
|
||||||
var firstDate, hist, lastDate, new_e;
|
var firstDate, hist, lastDate, new_e;
|
||||||
unit = unit || 'years';
|
unit = unit || 'years';
|
||||||
hist = __.get(rez, collKey);
|
hist = lo.get(rez, collKey);
|
||||||
if (!hist || !hist.length) {
|
if (!hist || !hist.length) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
FluentDate = require '../core/fluent-date'
|
FluentDate = require '../core/fluent-date'
|
||||||
_ = require 'underscore'
|
_ = require 'underscore'
|
||||||
|
lo = require 'lodash'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ module.exports =
|
|||||||
###
|
###
|
||||||
run: (rez, collKey, startKey, endKey, unit) ->
|
run: (rez, collKey, startKey, endKey, unit) ->
|
||||||
unit = unit || 'years'
|
unit = unit || 'years'
|
||||||
hist = __.get rez, collKey
|
hist = lo.get rez, collKey
|
||||||
return 0 if !hist or !hist.length
|
return 0 if !hist or !hist.length
|
||||||
|
|
||||||
# BEGIN CODE DUPLICATION --> src/inspectors/gap-inspector.coffee (TODO)
|
# BEGIN CODE DUPLICATION --> src/inspectors/gap-inspector.coffee (TODO)
|
||||||
|
Loading…
Reference in New Issue
Block a user