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