mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-08-12 12:00:40 +08:00
accept duration-ish inputs for incrementDate method
This commit is contained in:
+2
-2
@@ -638,8 +638,8 @@ function Calendar(element, instanceOptions) {
|
||||
}
|
||||
|
||||
|
||||
function incrementDate() {
|
||||
date.add.apply(date, arguments);
|
||||
function incrementDate(delta) {
|
||||
date.add(moment.duration(delta));
|
||||
renderView();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user