dbushell/Pikaday — pull request #223 by incy247 (2014-12-17 11:11:49+00:00)
Title: Fixed month not updating when outside max/min date

When changing date to the same year as maxYear if the current month was higher than the maxMonth the calendar would break and display the previously selected month (which could be greater the max date) The original code in draw() intending to prevent this doesn't appear to work (looks at variables this._y and this._m which always seem to be undefined and not referenced elsewhere) This fix checks that all calendars are within their max and min dates when changing date.