diff --git a/src/event.js b/src/event.js index 0780537..68e1d30 100644 --- a/src/event.js +++ b/src/event.js @@ -9,20 +9,14 @@ export default function event(spec, my) { my ||= {}; - // DEPRECATED: use that.register() instead. - function that(callback) { - // eslint-disable-next-line no-console - console.warn( - "Using an event as a function is deprecated. Send register() to the event instead.", - ); - - return that.register(callback); - } - let bindings = []; // #### Public API + function that(callbak) { + that = {} + } + /** * Binds callback to event. The callback will be invoked whenever the event is fired. *