code: function getIntervals(ctx) {
    return ctx._intervals || (ctx._parent ? getIntervals(ctx._parent) : new Intervals());
  }
docs: gets closest interval from this model or parent
  @returns {Object} Intervals object