The pickedDate property on gcObject is initialized as new Date(). When I then call setDate( new Date()) this will always cause an animation to happen since pickedDate != newDate.
I think you should remove all time info and also the current day of month from all dates. You're only interested in the year and month. I think you could help yourself if you make a method for that. Either inside the gcObject of as a function on Date. For the latter I found some js library that does something like that: https://github.com/datejs/Datejs/blob/master/src/core.js
The
pickedDate
property ongcObject
is initialized asnew Date()
. When I then callsetDate( new Date())
this will always cause an animation to happen sincepickedDate != newDate
. I think you should remove all time info and also the current day of month from all dates. You're only interested in the year and month. I think you could help yourself if you make a method for that. Either inside thegcObject
of as a function onDate
. For the latter I found some js library that does something like that: https://github.com/datejs/Datejs/blob/master/src/core.js