Skip to content

Commit ba4ef53

Browse files
committed
misc: optimizations
1 parent edd7e19 commit ba4ef53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

e2e/testcafe-devextreme/tests/scheduler/common/dragAndDrop/dragEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ test('Should not throw error when trying to drag appointment that is being updat
155155
e.cancel = new Promise((resolve) => {
156156
setTimeout(() => {
157157
resolve(false);
158-
}, 5000);
158+
}, 1500);
159159
});
160160
},
161161
});

packages/devextreme/js/__internal/scheduler/m_scheduler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
199199

200200
_asyncTemplatesTimers!: any[];
201201

202-
_updatingAppointments: Set<any> = new Set();
202+
_updatingAppointments: Set<Appointment> = new Set();
203203

204204
_dataSourceLoadedCallback: any;
205205

@@ -2155,7 +2155,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
21552155
return this._workSpace.dragBehavior;
21562156
}
21572157

2158-
_isAppointmentBeingUpdated(appointmentData: any): boolean {
2158+
_isAppointmentBeingUpdated(appointmentData: Appointment): boolean {
21592159
return this._updatingAppointments.has(appointmentData);
21602160
}
21612161

0 commit comments

Comments
 (0)