diff --git a/dist/inspectors/duration-inspector.js b/dist/inspectors/duration-inspector.js index 5b048a2..d5837ea 100644 --- a/dist/inspectors/duration-inspector.js +++ b/dist/inspectors/duration-inspector.js @@ -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; } diff --git a/src/inspectors/duration-inspector.coffee b/src/inspectors/duration-inspector.coffee index a93e78b..d6afc9a 100644 --- a/src/inspectors/duration-inspector.coffee +++ b/src/inspectors/duration-inspector.coffee @@ -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)