src/cal-heatmap.js
function(date, reset) {
		"use strict";

		if (arguments.length < 2) {
			reset = false;
		}
		var domains = this.getDomainKeys();
		var firstDomain = domains[0];
		var lastDomain = domains[domains.length-1];

		if (date < firstDomain) {
			return this.loadPreviousDomain(this.getDomain(firstDomain, date).length);
		} else {
			if (reset) {
				return this.loadNextDomain(this.getDomain(firstDomain, date).length);
			}

			if (date > lastDomain) {
				return this.loadNextDomain(this.getDomain(lastDomain, date).length);
			}
		}

		return false;
	}
function(date, reset) {
		"use strict";

		if (arguments.length < 2) {
			reset = false;
		}
		var domains = this.getDomainKeys();
		var firstDomain = domains[0];
		var lastDomain = domains[domains.length-1];

		if (date < firstDomain) {
			return this.loadPreviousDomain(this.getDomain(firstDomain, date).length);
		} else {
			if (reset) {
				return this.loadNextDomain(this.getDomain(firstDomain, date).length);
			}

			if (date > lastDomain) {
				return this.loadNextDomain(this.getDomain(lastDomain, date).length);
			}
		}

		return false;
	}
function ( date , reset ) { "use strict" ; if ( arguments . length < 2 ) { reset = false ; } var domains = this . getDomainKeys ( ) ; var firstDomain = domains [ 0 ] ; var lastDomain = domains [ domains . length - 1 ] ; if ( date < firstDomain ) { return this . loadPreviousDomain ( this . getDomain ( firstDomain , date ) . length ) ; } else { if ( reset ) { return this . loadNextDomain ( this . getDomain ( firstDomain , date ) . length ) ; } if ( date > lastDomain ) { return this . loadNextDomain ( this . getDomain ( lastDomain , date ) . length ) ; } } return false ; }
Jump directly to a specific date

JumpTo will scroll the calendar until the wanted domain with the specified
date is visible. Unless you set reset to true, the wanted domain
will not necessarily be the first (leftmost) domain of the calendar.

@param Date date Jump to the domain containing that date
@param bool reset Whether the wanted domain should be the first domain of the calendar
@param bool True of the calendar was scrolled
Jump directly to a specific date