I am using FullCalendar v1.6.1. In my code when event resize I am checking certain conditions and if not valid make it as original by calling revertFunc()
. But currently I am getting error
Uncaught TypeError: revertFunc is not a function
But revert function is working on eventDrop and drop events. My code is as follows
eventResize: function (event, delta, revertFunc) {
if(!valid){
revertFunc(); // Get the error
}
},
eventDrop: function (event, dayDelta, minuteDelta, allDay, revertFunc) {
if(!valid){
revertFunc(); // Working fine
}
}
if(not valid)
. I am sure it should be likeif(!valid)
– vijayP