Skip to content

Commit

Permalink
fix: add changes prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jungeun-cho committed Nov 4, 2019
1 parent 27d6d34 commit b4a435c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export type CustomEventType = keyof IEvents;

export interface IEventObject {
schedule: ISchedule;
changes: ISchedule | null;
end: TZDate;
start: TZDate;
calendar?: ICalendarInfo;
triggerEventName?: 'click' | 'dblclick';
originCalendarId?: string;
}

export interface IEventDateObject {
Expand Down
9 changes: 2 additions & 7 deletions src/js/factory/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,14 +789,9 @@ Calendar.prototype.getSchedule = function(scheduleId, calendarId) {
* // Or when using the default popup UI
* calendar.on('beforeUpdateSchedule', function(event) {
* var schedule = event.schedule;
* var startTime = event.start;
* var endTime = event.end;
* var originCalendarId = event.originCalendarId;
* var changes = event.changes;
*
* calendar.updateSchedule(schedule.id, originCalendarId, {
* start: startTime,
* end: endTime
* });
* calendar.updateSchedule(schedule.id, schedule.calendarId, changes);
* });
*/
Calendar.prototype.updateSchedule = function(scheduleId, calendarId, scheduleData, silent) {
Expand Down

0 comments on commit b4a435c

Please sign in to comment.