diff --git a/src/main.js b/src/main.js index 14eb66e..25a5927 100644 --- a/src/main.js +++ b/src/main.js @@ -480,7 +480,9 @@ $.fn.fullCalendar = function(options) { date.setDate(dateNum); } } - render(); + if(date < view.visStart || date > view.visEnd ){ + render(); + } }, incrementDate: function(years, months, days) { diff --git a/tests/skip-redraw-test.html b/tests/skip-redraw-test.html new file mode 100644 index 0000000..5283996 --- /dev/null +++ b/tests/skip-redraw-test.html @@ -0,0 +1,109 @@ + + +
+ + + + + + + + ++ This page is to test refactoring of gotoDate to check whether or not to call render() based on view.visStart and view.visEnd. +
+ + +