Ver Fonte

Rename durationDelta to resizeDelta because it's more semantic

Livvy Mackintosh há 7 anos atrás
pai
commit
2ac93ee376
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      src/View.ts

+ 4 - 4
src/View.ts

@@ -660,11 +660,11 @@ export default abstract class View extends InteractiveDateComponent {
       this.calendar
     )
 
-    let durationDelta = eventMutation.dateMutation.endDelta || eventMutation.dateMutation.startDelta
+    let resizeDelta = eventMutation.dateMutation.endDelta || eventMutation.dateMutation.startDelta
 
     this.triggerEventResize(
       eventInstance,
-      durationDelta,
+      resizeDelta,
       undoFunc,
       el, ev
     )
@@ -672,12 +672,12 @@ export default abstract class View extends InteractiveDateComponent {
 
 
   // Triggers event-resize handlers that have subscribed via the API
-  triggerEventResize(eventInstance, durationDelta, undoFunc, el, ev) {
+  triggerEventResize(eventInstance, resizeDelta, undoFunc, el, ev) {
     this.publiclyTrigger('eventResize', {
       context: el[0],
       args: [
         eventInstance.toLegacy(),
-        durationDelta,
+        resizeDelta,
         undoFunc,
         ev,
         {}, // {} = jqui dummy