jquery-week-calendar
jquery-week-calendar copied to clipboard
events options : incorrect items in document
Arguments of following "events" functions are incorrect:
====> reachedmindate: [function($calendar, date)] ====> reachedmaxdate: [function($calendar, date)]
The functions are now returning:
====> reachedmindate: [function(DomEvent, date)] ====> reachedmaxdate: [function(DomEvent, date)]
The solution for this issue would be to follow the conventions used by jQuery UI for events. The events triggered by jQuery UI widgets have to arguments: the event itself and some data linked to it.
$( ".selector" ).bind( "dropcreate", function(event, ui) {
...
});
We already follow this convention for the beforeEventNew
event. Of course, doing this for this particular case would break the BC... but as the current behavior is broken, is it a real problem?
Please review my PR for this issue before I merge it.
Ping?