@forcecalendar/interface 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -91,21 +91,23 @@ export class ForceCalendar extends BaseComponent {
|
|
|
91
91
|
forwardEventAction('remove', data);
|
|
92
92
|
})
|
|
93
93
|
);
|
|
94
|
+
// Specific lifecycle events — do NOT call forwardEventAction here; the
|
|
95
|
+
// canonical event:add/update/remove handlers above already forward the
|
|
96
|
+
// generic CustomEvent. These handlers emit only the specific variant so
|
|
97
|
+
// consumers that care about the distinction can subscribe to it without
|
|
98
|
+
// receiving the generic event a second time.
|
|
94
99
|
this._busUnsubscribers.push(
|
|
95
100
|
eventBus.on('event:added', data => {
|
|
96
|
-
forwardEventAction('add', data);
|
|
97
101
|
this.emit('calendar-event-added', data);
|
|
98
102
|
})
|
|
99
103
|
);
|
|
100
104
|
this._busUnsubscribers.push(
|
|
101
105
|
eventBus.on('event:updated', data => {
|
|
102
|
-
forwardEventAction('update', data);
|
|
103
106
|
this.emit('calendar-event-updated', data);
|
|
104
107
|
})
|
|
105
108
|
);
|
|
106
109
|
this._busUnsubscribers.push(
|
|
107
110
|
eventBus.on('event:deleted', data => {
|
|
108
|
-
forwardEventAction('remove', data);
|
|
109
111
|
this.emit('calendar-event-deleted', data);
|
|
110
112
|
})
|
|
111
113
|
);
|